コード例 #1
0
            public void TestThatGetSensorTypeReturnsNull()
            {
                MotionSensor sensor     = new MotionSensor();
                string       sensorType = sensor.GetSensorType();

                Assert.AreNotEqual(string.Empty, sensorType);
            }
コード例 #2
0
            public void TestThatGetSensorTypeReturnsType()
            {
                MotionSensor sensor     = new MotionSensor();
                string       sensorType = sensor.GetSensorType();

                Assert.AreEqual("Motion sensor", sensorType);
            }