public void CommandTests_IsEqualPowrCmdWithDifferentParamFormat_ReturnTrue()
        {
            var power1 = new AquosCommand("POWR", "0");
            var power2 = AquosCommand.Power(PowerSetting.Off);

            Assert.True(power1.ToString() == power2.ToString());
        }
Exemplo n.º 2
0
        public void VolumeTest()
        {
            var volume  = new AquosCommand("VOLM", "30");
            var volume2 = AquosCommand.Volume(30);

            Assert.IsTrue(volume.ToString() == volume2.ToString());
        }
        public void CommandTests_IsEqualVolmCmdWithDifferentParamFormat_ReturnsTrue()
        {
            var volume1 = new AquosCommand("VOLM", "30");
            var volume2 = AquosCommand.Volume(30);

            Assert.True(volume1.ToString() == volume2.ToString());
        }
Exemplo n.º 4
0
        public void CommandIsEqualToCommand()
        {
            var cmd1 = new AquosCommand("AAAA", "B");
            var cmd2 = new AquosCommand("AAAA", "B");

            Assert.AreEqual(cmd1, cmd2);
        }
Exemplo n.º 5
0
        public void PowerTest()
        {
            var power = AquosCommand.Power(PowerSetting.Off);

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

            Assert.IsTrue(power.ToString() == power2.ToString());
        }
Exemplo n.º 6
0
        public void EqualityOperatorWorksCorrectly()
        {
            var cmd1 = new AquosCommand("AAAA", "B");
            var cmd2 = new AquosCommand("AAAA", "B");
            var cmd3 = new AquosCommand("AAAA", "C");

            Assert.IsTrue(cmd1 == cmd2);
            Assert.IsFalse(cmd1 == cmd3);
        }
Exemplo n.º 7
0
        public void CommandIsNotEqualToCommand()
        {
            var cmd1 = new AquosCommand("AAAA", "B");
            var cmd2 = new AquosCommand("AAAA", "C");
            var cmd3 = new AquosCommand("AAAA", "Z");

            Assert.AreNotEqual(cmd1, cmd2);
            Assert.AreNotEqual(cmd1, cmd3);
            Assert.AreNotEqual(cmd2, cmd3);
        }
 public void VolumeTest()
 {
     var volume2 = AquosCommand.Volume(30);
 }
 public void PowerTest()
 {
     var power2 = AquosCommand.Power(PowerSetting.Off);
 }
Exemplo n.º 10
0
        public void GetHashCodeIsNotZero()
        {
            var cmd = new AquosCommand("AAAA");

            Assert.IsTrue(cmd.GetHashCode() != 0);
        }
Exemplo n.º 11
0
        public void EqualsReturnsFalseWhenArgumentIsNull()
        {
            var cmd = new AquosCommand("AAAA");

            Assert.IsFalse(cmd.Equals(null));
        }
Exemplo n.º 12
0
 public void CommandOutputIsEightCharacters()
 {
     var cmd = new AquosCommand("AAAA", "Z");
     Assert.AreEqual(cmd.ToString().Length, 8);
 }
Exemplo n.º 13
0
        public void ParameterIsFourCharactersWhenNotPassed()
        {
            var cmd = new AquosCommand("AAAA");

            Assert.AreEqual("    ", cmd.Parameter);
        }
Exemplo n.º 14
0
 public void ParameterTooLong()
 {
     var cmd = new AquosCommand("AAAA", "BBBBB");
 }
Exemplo n.º 15
0
 public void CommandIsTooLong()
 {
     var cmd = new AquosCommand("AAAAA");
 }
Exemplo n.º 16
0
 public void ThrowsExceptionForNullCommand()
 {
     var cmd = new AquosCommand(null);
 }