Refactored repo organization. Added Jenkinsfile.
This commit is contained in:
21
Props.Shop/Adafruit.Tests/Api/ListingParserTest.cs
Normal file
21
Props.Shop/Adafruit.Tests/Api/ListingParserTest.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Props.Shop.Adafruit.Api;
|
||||
using Xunit;
|
||||
|
||||
namespace Props.Shop.Adafruit.Tests
|
||||
{
|
||||
public class ListingParserTest
|
||||
{
|
||||
[Fact]
|
||||
public void TestParsing()
|
||||
{
|
||||
ProductListingsParser mockParser = new ProductListingsParser();
|
||||
using (Stream stream = File.OpenRead("./Assets/products.json"))
|
||||
{
|
||||
mockParser.BuildProductListings(stream);
|
||||
}
|
||||
Assert.NotEmpty(mockParser.ProductListings);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user