public void BasicRemote_Case_Power() { IDevice device = new TV(102, 2); var basicRemote = new BasicRemote(device); basicRemote.Power(); Assert.True(device.IsEnabled()); }
public void BasicRemote_Case_ChannelDownChannel1() { IDevice tv = new TV(10, 1); var basicRemoteTv = new BasicRemote(tv); basicRemoteTv.ChannelDown(); Assert.Equal(1, tv.GetChannel()); }
public void BasicRemote_Case_ChannelUpChannel100() { IDevice device = new TV(20, 100); var basicRemote = new BasicRemote(device); basicRemote.ChannelUp(); Assert.Equal(100, device.GetChannel()); }
public void BasicRemote_Case_ChannelDown() { IDevice tv = new TV(20, 70); var basicRemote = new BasicRemote(tv); basicRemote.ChannelDown(); Assert.Equal(69, tv.GetChannel()); }
public void BasicRemote_Case_VolumeDown() { IDevice device = new TV(20, 11); var basicRemote = new BasicRemote(device); basicRemote.VolumeDown(); Assert.Equal(10, device.GetVolume()); }