public void buildOutgoingCommand5Test() { { NuvoEssentiaSingleCommand_Accessor target = new NuvoEssentiaSingleCommand_Accessor (ENuvoEssentiaCommands.SetBassLevel, ENuvoEssentiaZones.Zone12, -10, 0); // ignore treble level string actual = target.buildOutgoingCommand(); Assert.AreEqual("Z12BASS-10", actual); } { NuvoEssentiaSingleCommand_Accessor target = new NuvoEssentiaSingleCommand_Accessor (ENuvoEssentiaCommands.SetBassLevel, ENuvoEssentiaZones.Zone12, 5, 0); // ignore treble level string actual = target.buildOutgoingCommand(); Assert.AreEqual("Z12BASS+05", actual); } { NuvoEssentiaSingleCommand_Accessor target = new NuvoEssentiaSingleCommand_Accessor (ENuvoEssentiaCommands.SetTrebleLevel, ENuvoEssentiaZones.Zone8, 5, 12); // ignore bass level string actual = target.buildOutgoingCommand(); Assert.AreEqual("Z08TREB+12", actual); } { NuvoEssentiaSingleCommand_Accessor target = new NuvoEssentiaSingleCommand_Accessor (ENuvoEssentiaCommands.SetTrebleLevel, ENuvoEssentiaZones.Zone9, 5, -12); // ignore bass level string actual = target.buildOutgoingCommand(); Assert.AreEqual("Z09TREB-12", actual); } }
public void buildOutgoingCommand1Test() { NuvoEssentiaSingleCommand_Accessor target = new NuvoEssentiaSingleCommand_Accessor(ENuvoEssentiaCommands.ReadVersion); string actual = target.buildOutgoingCommand(); Assert.AreEqual("VER", actual); }
public void buildOutgoingCommand4Test() { NuvoEssentiaSingleCommand_Accessor target = new NuvoEssentiaSingleCommand_Accessor (ENuvoEssentiaCommands.SetVolume, ENuvoEssentiaZones.Zone12, -60); string actual = target.buildOutgoingCommand(); Assert.AreEqual("Z12VOL60", actual); }
public void buildOutgoingCommand3Test() { NuvoEssentiaSingleCommand_Accessor target = new NuvoEssentiaSingleCommand_Accessor (ENuvoEssentiaCommands.SetSource, ENuvoEssentiaZones.Zone10, ENuvoEssentiaSources.Source2); string actual = target.buildOutgoingCommand(); Assert.AreEqual("Z10SRC2", actual); }
public void buildOutgoingCommand2Test() { NuvoEssentiaSingleCommand_Accessor target = new NuvoEssentiaSingleCommand_Accessor (ENuvoEssentiaCommands.ReadStatusCONNECT, ENuvoEssentiaZones.Zone5); string actual = target.buildOutgoingCommand(); Assert.AreEqual("Z05CONSR", actual); }