Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[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