public void GetNoteId_Note_ValidEmpty() { var note = new Note(new NoteName(), 1); var noteId = note.GetNoteId(); Assert.NotNull(noteId, "The NoteId is null."); Assert.AreEqual(new FourBitNumber(0), noteId.Channel, "The NoteId Channel is not the expected value."); Assert.AreEqual(new SevenBitNumber(24), noteId.NoteNumber, "The NoteId NoteNumber is not the expected value."); }
public void GetNoteId_Note_ValidSet() { var note = new Note(new SevenBitNumber(2)) { Channel = new FourBitNumber(1) }; var noteId = note.GetNoteId(); Assert.NotNull(noteId, "The NoteId is null."); Assert.AreEqual(new FourBitNumber(1), noteId.Channel, "The NoteId Channel is not the expected value."); Assert.AreEqual(new SevenBitNumber(2), noteId.NoteNumber, "The NoteId NoteNumber is not the expected value."); }