Update estimate
This commit is contained in:
@@ -23,6 +23,17 @@ namespace LeafWeb.Core.Tests.Charter
|
||||
Assert.That(curves.Count(),Is.EqualTo(1));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void Convert_Papaya()
|
||||
{
|
||||
var fileInfo = FileUtility.GetContentFile(ContentDirectory, "Papaya_leafgascomparison.csv");
|
||||
LeafGasComparison[] leafGasComparisons;
|
||||
using (var parser = new LeafGasComparisonParser(fileInfo))
|
||||
leafGasComparisons = parser.Parse();
|
||||
|
||||
var curves = CurveDataConverter.Convert(leafGasComparisons);
|
||||
Assert.That(curves.Count(),Is.EqualTo(23));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void Convert_ThrowsExpectionWhenNotEnoughDataSets()
|
||||
|
||||
@@ -102,6 +102,9 @@
|
||||
<Content Include="Parsers\LeafOutputData\multiple_leafgascomparison.csv">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Parsers\LeafOutputData\Papaya_leafgascomparison.csv">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<ItemGroup>
|
||||
|
||||
@@ -65,6 +65,18 @@ namespace LeafWeb.Core.Tests.Parsers
|
||||
Assert.That(curveIds.Length, Is.EqualTo(3));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ExtractCurveIds_Multiple_Papaya()
|
||||
{
|
||||
var fileInfo = FileUtility.GetContentFile(ContentDirectory, "Papaya_leafgascomparison.csv");
|
||||
|
||||
string[] curveIds;
|
||||
using (var parser = new LeafGasComparisonParser(fileInfo))
|
||||
curveIds = parser.ExtractCurveIds();
|
||||
|
||||
Assert.That(curveIds.Length, Is.EqualTo(23));
|
||||
}
|
||||
|
||||
//[Test, Explicit]
|
||||
public void Parse_Timer()
|
||||
{
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user