Ejemplo n.º 1
0
        public void ToStringLessErrorTest()
        {
            string      expected = "Общая длительность нот в такте на 1/4 меньше размера такта";
            List <Note> notes    = new List <Note>()
            {
                new Note(new Duration(1, 8)),
                new Note(new Duration(1, 8)),
                new Note(new Duration(1, 4))
            };
            Duration duration = new Duration(3, 4);
            Beat     actual   = new Beat(duration, notes);

            Assert.True(actual.ToString().Equals(expected));
        }
Ejemplo n.º 2
0
        public void ToStringTest()
        {
            string      expected = "8 8 4";
            List <Note> notes    = new List <Note>()
            {
                new Note(new Duration(1, 8)),
                new Note(new Duration(1, 8)),
                new Note(new Duration(1, 4))
            };
            Duration duration = new Duration(2, 4);
            Beat     actual   = new Beat(duration, notes);

            Assert.True(actual.ToString().Equals(expected));
        }