Update estimate

This commit is contained in:
2017-02-23 08:39:56 -05:00
parent 53c358a63a
commit 61cbc942c1
7 changed files with 6305 additions and 2 deletions
@@ -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()
+3
View File
@@ -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