Exemple #1
0
        public void CheckInputAndOutputUnofficialHeadsetValue()
        {
            var output = new TestableOutput();
            UnofficialiPhoneHeadset unofficialiPhoneHeadset = new UnofficialiPhoneHeadset(output);

            string inputValue = $"Madonna Song";

            unofficialiPhoneHeadset.Play(inputValue);

            string outputValue   = output.WritenLineText;
            string expectedValue = $"{nameof(UnofficialiPhoneHeadset)} play {inputValue}";

            Assert.AreEqual(expectedValue, outputValue);
        }
Exemple #2
0
        public void CheckInputAndOutputPhoneSpeakerValue()
        {
            var          output       = new TestableOutput();
            PhoneSpeaker phoneSpeaker = new PhoneSpeaker(output);

            string inputValue = "Madonna Song";

            phoneSpeaker.Play(inputValue);

            string outputValue   = output.WritenLineText;
            string expectedValue = $"{nameof(PhoneSpeaker)} play {inputValue}";

            Assert.AreEqual(expectedValue, outputValue);
        }
Exemple #3
0
        public void CheckInputAndOutputSamsungHeadsetValue()
        {
            var            output         = new TestableOutput();
            SamsungHeadset samsungHeadset = new SamsungHeadset(output);

            string inputValue = "Madonna Song";

            samsungHeadset.Play(inputValue);

            string outputValue   = output.WritenLineText;
            string expectedValue = $"{nameof(SamsungHeadset)} play {inputValue}";

            Assert.AreEqual(expectedValue, outputValue);
        }