public void Acorde_Deve_Criar_Acorde_Maior() { Acorde acorde = Acorde.CriarAcordeMaior(TipoNota.DO); Assert.Equal(new List <TipoIntervalo>() { TipoIntervalo.TONICA, TipoIntervalo.TERCA_MAIOR, TipoIntervalo.QUINTA_JUSTA }, acorde.GetIntervalos()); }
public void Interpret_Deve_Adicionar_DecimaTerceira(string nome) { InterpreterAcorde interpreterAcorde = new InterpreterAcorde(); Acorde acorde = new Acorde { Nome = nome }; interpreterAcorde.Interpret(acorde); Assert.Contains(TipoIntervalo.SEXTA_MAIOR, acorde.GetIntervalos()); }
public void Interpret_Deve_Adicionar_Quarta(string nome) { InterpreterAcorde interpreterAcorde = new InterpreterAcorde(); Acorde acorde = new Acorde { Nome = nome }; interpreterAcorde.Interpret(acorde); Assert.Contains(TipoIntervalo.QUARTA_JUSTA, acorde.GetIntervalos()); }
public void Interpret_Deve_Adicionar_Setima(string nome) { InterpreterAcorde interpreterAcorde = new InterpreterAcorde(); Acorde acorde = new Acorde { Nome = nome }; interpreterAcorde.Interpret(acorde); Assert.Contains(TipoIntervalo.SETIMA_MENOR, acorde.GetIntervalos()); }
public void Interpret_Deve_Reconhecer_Acordes_Menores(string nome) { Acorde acorde = new Acorde(nome); InterpreterAcorde cAcorde = new InterpreterAcorde(); cAcorde.Interpret(acorde); Assert.Equal( new List <TipoIntervalo> { TipoIntervalo.TONICA, TipoIntervalo.TERCA_MENOR, TipoIntervalo.QUINTA_JUSTA }, acorde.GetIntervalos()); }