Esempio n. 1
0
        public void FullNameGenderIsSameAsFirstNameGender()
        {
            var patrickRoberts = new NounPhrase(new ProperSingularNoun("Patrick"), new ProperPluralNoun("Roberts"));
            var patrick        = new ProperSingularNoun("Patrick");

            Check.That(patrickRoberts.GetGender()).IsEqualTo(patrick.GetGender());
            Check.That(((IEntity)patrickRoberts).GetGender()).IsEqualTo(patrick.GetGender());
        }
Esempio n. 2
0
        public void GetGenderTest()
        {
            var patrick = new ProperSingularNoun("Patrick");

            Check.That(patrick.GetGender()).IsEqualTo(patrick.GetGender());
            Check.That(patrick.GetGender()).IsEqualTo(Gender.Male);
            Check.That((patrick as IEntity).GetGender()).IsEqualTo(Gender.Male);
            Check.That((patrick as ProperNoun).GetGender()).IsEqualTo(Gender.Male);
            Check.That((patrick as Noun).GetGender()).IsEqualTo(Gender.Male);
        }
Esempio n. 3
0
        public void AcronymIsOfNeutralGender()
        {
            ISimpleGendered lasi = new ProperSingularNoun("LASI");

            Check.That(lasi.Gender).IsEqualTo(Gender.Neutral).And.IsEqualTo(lasi.GetGender());
        }
Esempio n. 4
0
        public void KnownLastNameIsOfNeutralGender()
        {
            ISimpleGendered carnegie = new ProperSingularNoun("Carnegie");

            Check.That(carnegie.Gender).IsEqualTo(Gender.Neutral).And.IsEqualTo(carnegie.GetGender());
        }
Esempio n. 5
0
        public void KnownFemaleIsOfFemaleGender()
        {
            ISimpleGendered jill = new ProperSingularNoun("Jill");

            Check.That(jill.Gender).IsEqualTo(Gender.Female).And.IsEqualTo(jill.GetGender());
        }
Esempio n. 6
0
        public void KnownMaleFirstNameIsOfMaleGender()
        {
            ISimpleGendered jack = new ProperSingularNoun("Jack");

            Check.That(jack.Gender).IsEqualTo(Gender.Male).And.IsEqualTo(jack.GetGender());
        }