public void ConvertNote_AccidGes(string accid, Model.AccidType accidType) { meinote.SetAccidGes(accid); NoteConverter.ConvertNote(convertedNote, meinote); Assert.AreEqual(accidType, convertedNote.AccidGes); }
public void ConvertNoteTest_Ratio(int num, int numbase) { meinote.SetNum(num.ToString()); meinote.SetNumbase(numbase.ToString()); NoteConverter.ConvertNote(convertedNote, meinote); Assert.AreEqual(new Fraction(num, numbase), convertedNote.Ratio); }
public void ConvertNoteTest_Duration(string meidur, Model.Duration dur) { if (meidur != null) { meinote.SetDur(meidur); } NoteConverter.ConvertNote(convertedNote, meinote); Assert.AreEqual(dur, convertedNote.Duration); }
public void ConvertNoteTest_Fermata(string fermata, bool assert) { if (fermata != null) { meinote.SetFermata(fermata); } NoteConverter.ConvertNote(convertedNote, meinote); Assert.AreEqual(assert, convertedNote.Fermata); }
public void ConvertNoteTest_Coloration(string colored, bool assert) { if (colored != null) { meinote.SetColored(colored); } NoteConverter.ConvertNote(convertedNote, meinote); Assert.AreEqual(assert, convertedNote.Coloration); }
public void ConvertNoteTest_WrittenPitch(string _pname, string _oct, int _base40) { if (_pname != null) { meinote.SetPname(_pname); } if (_oct != null) { meinote.SetOct(_oct); } NoteConverter.ConvertNote(convertedNote, meinote); Assert.AreEqual(_base40, convertedNote.WrittenPitch); }
public void ConvertNoteTest_Stem(string pos, string dir, Model.StemDesc stem) { if (dir != null) { meinote.SetStemDir(dir); } if (pos != null) { meinote.SetStemPos(pos); } NoteConverter.ConvertNote(convertedNote, meinote); Assert.AreEqual(stem, convertedNote.Stem); }