Ejemplo n.º 1
0
        public void GetNotas_Deve_Retornar_Notas_Dos_Acordes(TipoIntervalo intervalo, TipoNota nota)
        {
            Acorde acorde = new Acorde
            {
                Tonica = TipoNota.DO
            };

            acorde.AddIntervalo(intervalo);
            Assert.Contains(nota, acorde.GetNotas());
        }
Ejemplo n.º 2
0
        protected static void Main(string[] args)
        {
            string            nomeAcorde = args[0];
            InterpreterAcorde cAcorde    = new InterpreterAcorde();
            Acorde            acorde     = new Acorde(nomeAcorde);

            cAcorde.Interpret(acorde);

            foreach (TipoNota nota in acorde.GetNotas())
            {
                Console.WriteLine(nota);
            }
        }