Exemple #1
0
        public void GetDetailedInfo()
        {
            var cube = new MockSolarPanel {
                CustomInfo   = @"Max Possible Output: 160 kW
––•",
                DetailedInfo = @"Type: Solar Panel
Max Output: 40.80 kW
Current Output: 0 W
"
            };

            Assert.AreEqual("40.80 kW", cube.GetDetailedInfo("Max Output"));
            Assert.AreEqual("160 kW", cube.GetDetailedInfo("Max Possible Output"));
        }