Esempio n. 1
0
        public void Should_Conjugate_Properly(Type v, ConjugationOptions co, string expectedConjugation)
        {
            if (v.IsAssignableFrom(typeof(VerbNotImplemented)))
            {
                throw new NotImplementedException($"Verb {expectedConjugation} is not implemented");
            }
            var verb   = (IVerb)Activator.CreateInstance(v);
            var result = verb.Conjugate(co);

            Assert.Equal(expectedConjugation, result);
        }
Esempio n. 2
0
 public virtual string Conjugate(ConjugationOptions conjugation)
 {
     return(Conjugation(conjugation.Mood, conjugation.Tense, conjugation.Pronoun));
 }