public void PlayTest()
        {
            var output   = new OutputMock();
            var mobile   = new PhoneStub(output);
            var playback = new UnofficialIphoneHeadset(output);

            mobile.PlaybackComponent = playback;
            mobile.Play(new object());

            Assert.IsTrue(output.Output.ToUpper().Contains("SOUND"));
        }
Ejemplo n.º 2
0
        public void PlayUnofficialIphoneHeadsetTest()
        {
            var output   = new OutputMock();
            var mobile   = new PhoneStub(output);
            var playback = new UnofficialIphoneHeadset(output);

            mobile.PlaybackComponent = playback;
            mobile.Play(new object());

            string playbackOutput = output.Output.ToUpper();

            Assert.IsTrue(playbackOutput.Contains("SOUND"));
            Assert.IsTrue(playbackOutput.Contains("IPHONE"));
            Assert.IsTrue(playbackOutput.Contains("UNOFFICIAL"));
        }