예제 #1
0
        public void OwnChargerCharge()
        {
            // Arrange
            string           actualOutput   = "";
            OutputForTesting VariableOutput = new OutputForTesting(actualOutput);
            OwnCharger       OwnCharger     = new OwnCharger(VariableOutput);

            string expectedOutput = $"{nameof(OwnCharger)} is charging your phone";

            // Act
            OwnCharger.Charge();
            actualOutput = VariableOutput.OutputVariable;

            // Assert
            Assert.AreEqual(expectedOutput, actualOutput);
        }
예제 #2
0
        public void UnofficialiPhoneHeadsetPlay()
        {
            // Arrange
            string                  actualOutput            = "";
            OutputForTesting        VariableOutput          = new OutputForTesting(actualOutput);
            UnofficialiPhoneHeadset UnofficialiPhoneHeadset = new UnofficialiPhoneHeadset(VariableOutput);

            string expectedOutput = $"{nameof(UnofficialiPhoneHeadset)} sound";

            // Act
            UnofficialiPhoneHeadset.Play(new Object());
            actualOutput = VariableOutput.OutputVariable;

            // Assert
            Assert.AreEqual(expectedOutput, actualOutput);
        }
예제 #3
0
        public void KyivstarSimCardConnectToLocalMobileNetwork()
        {
            // Arrange
            string           actualOutput    = "";
            OutputForTesting VariableOutput  = new OutputForTesting(actualOutput);
            KyivstarSimCard  KyivstarSimCard = new KyivstarSimCard(VariableOutput);

            string expectedOutput = $"{nameof(KyivstarSimCard)} has connected to the local mobile network";

            // Act
            KyivstarSimCard.ConnectToLocalMobileNetwork();
            actualOutput = VariableOutput.OutputVariable;

            // Assert
            Assert.AreEqual(expectedOutput, actualOutput);
        }
예제 #4
0
        public void ApacerMicroSDHCStore()
        {
            // Arrange
            string           actualOutput    = "";
            OutputForTesting VariableOutput  = new OutputForTesting(actualOutput);
            ApacerMicroSDHC  ApacerMicroSDHC = new ApacerMicroSDHC(VariableOutput);

            string expectedOutput = $"{nameof(ApacerMicroSDHC)} has stored your data";

            // Act
            ApacerMicroSDHC.Store(new Object());
            actualOutput = VariableOutput.OutputVariable;

            // Assert
            Assert.AreEqual(expectedOutput, actualOutput);
        }
예제 #5
0
        public void SiliconPowerMicroSDStore()
        {
            // Arrange
            string              actualOutput        = "";
            OutputForTesting    VariableOutput      = new OutputForTesting(actualOutput);
            SiliconPowerMicroSD SiliconPowerMicroSD = new SiliconPowerMicroSD(VariableOutput);

            string expectedOutput = $"{nameof(SiliconPowerMicroSD)} has stored your data";

            // Act
            SiliconPowerMicroSD.Store(new Object());
            actualOutput = VariableOutput.OutputVariable;

            // Assert
            Assert.AreEqual(expectedOutput, actualOutput);
        }
예제 #6
0
        public void SanDiskMicroSDXCStore()
        {
            // Arrange
            string           actualOutput     = "";
            OutputForTesting VariableOutput   = new OutputForTesting(actualOutput);
            SanDiskMicroSDXC SanDiskMicroSDXC = new SanDiskMicroSDXC(VariableOutput);

            string expectedOutput = $"{nameof(SanDiskMicroSDXC)} has stored your data";

            // Act
            SanDiskMicroSDXC.Store(new Object());
            actualOutput = VariableOutput.OutputVariable;

            // Assert
            Assert.AreEqual(expectedOutput, actualOutput);
        }
예제 #7
0
        public void SamsungHeadsetPlay()
        {
            // Arrange
            string           actualOutput   = "";
            OutputForTesting VariableOutput = new OutputForTesting(actualOutput);
            SamsungHeadset   SamsungHeadset = new SamsungHeadset(VariableOutput);

            string expectedOutput = $"{nameof(SamsungHeadset)} sound";

            // Act
            SamsungHeadset.Play(new Object());
            actualOutput = VariableOutput.OutputVariable;

            // Assert
            Assert.AreEqual(expectedOutput, actualOutput);
        }
예제 #8
0
        public void PhoneSpeakerPlay()
        {
            // Arrange
            string           actualOutput   = "";
            OutputForTesting VariableOutput = new OutputForTesting(actualOutput);
            PhoneSpeaker     PhoneSpeaker   = new PhoneSpeaker(VariableOutput);

            string expectedOutput = $"{nameof(PhoneSpeaker)} sound";

            // Act
            PhoneSpeaker.Play(new Object());
            actualOutput = VariableOutput.OutputVariable;

            // Assert
            Assert.AreEqual(expectedOutput, actualOutput);
        }
예제 #9
0
        public void NomiPowerBankCharge()
        {
            // Arrange
            string           actualOutput   = "";
            OutputForTesting VariableOutput = new OutputForTesting(actualOutput);
            NomiPowerBank    NomiPowerBank  = new NomiPowerBank(VariableOutput);

            string expectedOutput = $"{nameof(NomiPowerBank)} is charging your phone";

            // Act
            NomiPowerBank.Charge();
            actualOutput = VariableOutput.OutputVariable;

            // Assert
            Assert.AreEqual(expectedOutput, actualOutput);
        }