Ejemplo n.º 1
0
        public void SpeakerIsPlaying()
        {
            //Arrange
            IOutput output  = new FakeOutput();
            var     headset = new Speaker(15, 15000, 4.5, 2, output);
            var     expect  = "Test Output is running";

            //Act
            var actual = headset.Play(new object());

            //Assert
            Assert.AreEqual(expect, actual);
        }
        public void XiaomiChargerIsPlaying()
        {
            //Arrange
            IOutput output  = new FakeOutput();
            var     charger = new XiaomiCharger(110, output);
            var     expect  = "Test Output is running";

            //Act
            var actual = charger.Charge(new object());

            //Assert
            Assert.AreEqual(expect, actual);
        }
Ejemplo n.º 3
0
        public void UnofficialAppleHeadsetIsPlaying()
        {
            //Arrange
            IOutput output  = new FakeOutput();
            var     headset = new UnofficialAppleHeadset(output);
            var     expect  = "Test Output is running";

            //Act
            var actual = headset.Play(new object());

            //Assert
            Assert.AreEqual(expect, actual);
        }
        public void AppleChargerIsPlaying()
        {
            //Arrange
            IOutput      output  = new FakeOutput();
            AppleCharger charger = new AppleCharger(110, output);
            string       expect  = "Test Output is running";

            //Act
            string actual = charger.Charge(new object());

            //Assert
            Assert.AreEqual(expect, actual);
        }
Ejemplo n.º 5
0
        public void NoPlaybackComponent()
        {
            //Arrange
            IOutput output = new FakeOutput();
            var     mobile = new SimCorpMobile();

            mobile.Output = output;
            var expect = "Test Output is running";

            //Act
            var actual = mobile.Play(new object());

            //Assert
            Assert.AreEqual(expect, actual);
        }