Example #1
0
        public void ConvertNote_AccidGes(string accid, Model.AccidType accidType)
        {
            meinote.SetAccidGes(accid);

            NoteConverter.ConvertNote(convertedNote, meinote);

            Assert.AreEqual(accidType, convertedNote.AccidGes);
        }
Example #2
0
        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);
        }
Example #3
0
        public void ConvertNoteTest_Duration(string meidur, Model.Duration dur)
        {
            if (meidur != null)
            {
                meinote.SetDur(meidur);
            }

            NoteConverter.ConvertNote(convertedNote, meinote);

            Assert.AreEqual(dur, convertedNote.Duration);
        }
Example #4
0
        public void ConvertNoteTest_Fermata(string fermata, bool assert)
        {
            if (fermata != null)
            {
                meinote.SetFermata(fermata);
            }

            NoteConverter.ConvertNote(convertedNote, meinote);

            Assert.AreEqual(assert, convertedNote.Fermata);
        }
Example #5
0
        public void ConvertNoteTest_Coloration(string colored, bool assert)
        {
            if (colored != null)
            {
                meinote.SetColored(colored);
            }

            NoteConverter.ConvertNote(convertedNote, meinote);

            Assert.AreEqual(assert, convertedNote.Coloration);
        }
Example #6
0
        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);
        }
Example #7
0
        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);
        }