Files
LeafWeb/Core.Tests/Parsers/LeafGasComparisonParserTests.cs
T

26 lines
628 B
C#

using LeafWeb.Core.Entities;
using LeafWeb.Core.Parsers;
using LeafWeb.Core.Utility;
using NUnit.Framework;
namespace LeafWeb.Core.Tests.Parsers
{
[TestFixture]
public class LeafGasComparisonParserTests
{
private const string ContentDirectory = @"Parsers\LeafOutputData\";
[Test]
public void Parse_Valid()
{
var fileInfo = FileUtility.GetContentFile(ContentDirectory, "leafgascomparison.csv");
LeafGasComparison[] leafGasComparisons;
using (var parser = new LeafGasComparisonParser(fileInfo))
leafGasComparisons = parser.Parse();
Assert.That(leafGasComparisons.Length, Is.EqualTo(6));
}
}
}