public void TestPianoKeyStatus() { var pianoKey = new PianoKey(59); pianoKey.Future.AddRange(new List<int>{0, 1}); var viewModel = new PianoKeyViewModel(pianoKey); Assert.IsFalse(viewModel.IsPlaying); pianoKey.TakeStep(); Assert.IsTrue(viewModel.IsPlaying); }
public PianoKeyViewModel(PianoKey pianoKey) { _pianoKey = pianoKey; }
public void TestTakeStep() { var pianoKey = new PianoKey(50); pianoKey.TakeStep(); Assert.AreEqual(1, pianoKey.CurrentIndex); }