コード例 #1
0
        public void CommandTests_IsEqualPowrCmdWithDifferentParamFormat_ReturnTrue()
        {
            var power1 = new AquosCommand("POWR", "0");
            var power2 = AquosCommand.Power(PowerSetting.Off);

            Assert.True(power1.ToString() == power2.ToString());
        }
コード例 #2
0
        public void CommandTests_IsEqualVolmCmdWithDifferentParamFormat_ReturnsTrue()
        {
            var volume1 = new AquosCommand("VOLM", "30");
            var volume2 = AquosCommand.Volume(30);

            Assert.True(volume1.ToString() == volume2.ToString());
        }
コード例 #3
0
        public void VolumeTest()
        {
            var volume  = new AquosCommand("VOLM", "30");
            var volume2 = AquosCommand.Volume(30);

            Assert.IsTrue(volume.ToString() == volume2.ToString());
        }
コード例 #4
0
        public void PowerTest()
        {
            var power = AquosCommand.Power(PowerSetting.Off);

            var power2 = new AquosCommand("POWR", "0");

            Assert.IsTrue(power.ToString() == power2.ToString());
        }
コード例 #5
0
 public void CommandOutputIsEightCharacters()
 {
     var cmd = new AquosCommand("AAAA", "Z");
     Assert.AreEqual(cmd.ToString().Length, 8);
 }