public void CallMusicPlayerChangeVolumeWhenVolumePropertyIsSetted() { const int volume = 20; VolumeViewModel viewModel = new VolumeViewModel {Volume = volume}; MockMusicPlayer.Verify(mp => mp.ChangeVolume(volume), Times.Once()); Assert.AreEqual(volume, viewModel.Volume); }
public void InstantiateCorrectly() { VolumeViewModel viewModel = new VolumeViewModel(); Assert.AreEqual(1, viewModel.Volume); }