Exemple #1
0
        public void TestForTvChannalUp()
        {
            var tv       = new TV();
            var remote   = new Remote(tv);
            var actual   = remote.ChannalUp();
            var expected = 2;

            Assert.AreEqual(expected, actual);
        }
Exemple #2
0
        public void TestForRadioChannalUp()
        {
            var radio    = new Radio();
            var remote   = new Remote(radio);
            var actual   = remote.ChannalUp();
            var expected = 100.6;

            Assert.AreEqual(expected, actual);
        }