public void AppleHeadsetOutputsNameWhenPlayed()
        {
            var appleHeadSet = new AppleHeadset(OutputMock.Object);

            appleHeadSet.Play("");

            OutputMock.Verify(output => output.WriteLine(appleHeadSet.GetName() + " sound"));
        }
Beispiel #2
0
        public void AppleHeadsetWithoutOutput()
        {
            //Arrange
            var headset = new AppleHeadset(null);
            var expect  = "No Output!";

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

            //Assert
            Assert.AreEqual(expect, actual);
        }
Beispiel #3
0
        public void AppleHeadsetIsPlaying()
        {
            //Arrange
            IOutput output  = new FakeOutput();
            var     headset = new AppleHeadset(output);
            var     expect  = "Test Output is running";

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

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