Created
June 16, 2016 07:58
-
-
Save zs40x/8b501f28675fc73589a3d5be8fd0df18 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestFixture] | |
public class Valid | |
{ | |
[Test] | |
public void TestReportGeneration() | |
{ | |
var sensorName = "TempSensor 1"; | |
var sensor = new Sensor(sensorName, new List<double>() { 1.0D }); | |
var expectedContent = | |
$"#SensorInfo#Name:{sensorName};Average:1;Minimum:1;Maximum:1{Environment.NewLine}##1"; | |
var reportGenerator = new PlainTextSensorReportGenerator(sensor); | |
Assert.AreEqual(expectedContent, reportGenerator.GetContent()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment