Reformating charting, add DataError message
This commit is contained in:
@@ -22,5 +22,18 @@ namespace LeafWeb.Core.Tests.Charter
|
||||
var curves = CurveDataConverter.Convert(leafGasComparisons);
|
||||
Assert.That(curves.Count(),Is.EqualTo(1));
|
||||
}
|
||||
|
||||
|
||||
[Test]
|
||||
public void Convert_ThrowsExpectionWhenNotEnoughDataSets()
|
||||
{
|
||||
var fileInfo = FileUtility.GetContentFile(ContentDirectory, "Sample4_leafgascomparison.csv");
|
||||
|
||||
LeafGasComparison[] leafGasComparisons;
|
||||
using (var parser = new LeafGasComparisonParser(fileInfo))
|
||||
leafGasComparisons = parser.Parse();
|
||||
|
||||
Assert.Throws<ParseException>(() => CurveDataConverter.Convert(leafGasComparisons).ToArray());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user