public void ToStringNotInitializedTest() { var sensor = new Sensor(); var actualResult = sensor.ToString(); Assert.IsNotNull(actualResult); }
public void SetToStringTest() { var literal = "MySensor"; var sensor = new Sensor(); sensor.SetToString(() => literal); var actualResult = sensor.ToString(); Assert.AreEqual(literal, actualResult); }