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);
 }
Beispiel #2
0
 public PianoKeyViewModel(PianoKey pianoKey)
 {
     _pianoKey = pianoKey;
 }
Beispiel #3
0
 public void TestTakeStep()
 {
     var pianoKey = new PianoKey(50);
     pianoKey.TakeStep();
     Assert.AreEqual(1, pianoKey.CurrentIndex);
 }