public void Charge_OnePlusWarpCharge30()
        {
            //Arrange
            FakeOutput fakeOutput = new FakeOutput();
            var        expected   = $"Battery now is charging using OnePlusWarpCharge30\nWow, this charging speed must be illegal, right?\n\n";
            //Act
            var charger = new OnePlusWarpCharge30(inductiveCharge: true, BatteryChargerBase._ChargingTechnology.OnePlus_WarpCharge30, fakeOutput);

            charger.Charge();
            //Assert
            Assert.AreEqual(expected, fakeOutput.GetOutputAsText());
        }
        public void Charge_AppleFastCharge()
        {
            //Arrange
            FakeOutput fakeOutput = new FakeOutput();
            var        expected   = $"Battery now is charging using AppleFastCharge\nWow, this charging speed must be illegal, right?\n\n";
            //Act
            var appleFastCharge = new AppleFastCharge(inductiveCharge: true, BatteryChargerBase._ChargingTechnology.Apple_FastCharge, fakeOutput);

            appleFastCharge.Charge();
            //Assert
            Assert.AreEqual(expected, fakeOutput.GetOutputAsText());
        }
        public void Charge_MediaTekPumpExpress4_0()
        {
            //Arrange
            FakeOutput fakeOutput = new FakeOutput();
            var        expected   = $"Battery now is charging using MediaTekPumpExpress4_0\nWow, this charging speed must be illegal, right?\n\n";
            //Act
            var charger = new MediaTekPumpExpress4_0(inductiveCharge: true, BatteryChargerBase._ChargingTechnology.MediaTek_PumpExpress4_0, fakeOutput);

            charger.Charge();
            //Assert
            Assert.AreEqual(expected, fakeOutput.GetOutputAsText());
        }
示例#4
0
        public void InstallBattery_BatteryNiMH()
        {
            //Arrange
            FakeOutput fakeOutput = new FakeOutput();
            var        expected   = $"BatteryNiMH now is supply power to Mobile Phone\n";
            //Act
            var batteryNiMH = new BatteryNiMH(capacity: 666, "", fakeOutput);

            batteryNiMH.InstallBattery();
            //Assert
            Assert.AreEqual(expected, fakeOutput.GetOutputAsText());
        }
        public void Charge_SamsungAdaptiveFastCharger()
        {
            //Arrange
            FakeOutput fakeOutput = new FakeOutput();
            var        expected   = $"Battery now is charging using SamsungAdaptiveFastCharger\nWow, this charging speed must be illegal, right?\n\n";
            //Act
            var charger = new SamsungAdaptiveFastCharger(inductiveCharge: true, BatteryChargerBase._ChargingTechnology.Samsung_AdaptiveFastCharger, fakeOutput);

            charger.Charge();
            //Assert
            Assert.AreEqual(expected, fakeOutput.GetOutputAsText());
        }
示例#6
0
        public void Play_NoNameHeadSet()
        {
            //Arrange
            FakeOutput fakeOutput = new FakeOutput();
            var        expected   = "Do you hear this test sound? Me too\n";
            //Act
            var noNameHeadSet = new NoNameHeadSet(volume: 75, fakeOutput);

            noNameHeadSet.Play("Do you hear this test sound? Me too");
            //Assert
            Assert.AreEqual(expected, fakeOutput.GetOutputAsText());
        }
示例#7
0
        public void Play_HomePod()
        {
            //Arrange
            FakeOutput fakeOutput = new FakeOutput();
            var        expected   = "Do you hear this test sound? Me too\n";
            //Act
            var homePod = new HomePod(volume: 75, fakeOutput);

            homePod.Play("Do you hear this test sound? Me too");
            //Assert
            Assert.AreEqual(expected, fakeOutput.GetOutputAsText());
        }
示例#8
0
        public void Play_GalaxyBudsLive()
        {
            //Arrange
            FakeOutput fakeOutput = new FakeOutput();
            var        expected   = "Do you hear this test sound? Me too\n";
            //Act
            var galaxyBudsLive = new GalaxyBudsLive(volume: 75, fakeOutput);

            galaxyBudsLive.Play("Do you hear this test sound? Me too");
            //Assert
            Assert.AreEqual(expected, fakeOutput.GetOutputAsText());
        }
示例#9
0
        public void Play_AirPodsPro()
        {
            //Arrange
            FakeOutput fakeOutput = new FakeOutput();
            var        expected   = "Do you hear this test sound? Me too\n";
            //Act
            var airPodsPro = new AirPodsPro(volume: 75, fakeOutput);

            airPodsPro.Play("Do you hear this test sound? Me too");
            //Assert
            Assert.AreEqual(expected, fakeOutput.GetOutputAsText());
        }
示例#10
0
        public void Play_PhoneSpeaker()
        {
            //Arrange
            FakeOutput fakeOutput = new FakeOutput();
            var        expected   = "Do you hear this test sound? Me too\n";
            //Act
            var phoneSpeaker = new PhoneSpeaker(volume: 75, fakeOutput);

            phoneSpeaker.Play("Do you hear this test sound? Me too");
            //Assert
            Assert.AreEqual(expected, fakeOutput.GetOutputAsText());
        }