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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }