Example #1
0
        public void TestGroupNameSurnameCompareSameGroupName()
        {
            Person personLeft  = new Person(@"Некрасов Иван РН-231");
            Person personRight = new Person(@"Бунин Иван РН-231");

            Assert.AreEqual(1, PersonComparer.CompareByGroupNameSurname(personLeft, personRight));
        }
Example #2
0
        public void TestNameCompare()
        {
            Person personLeft  = new Person(@"Мандельштам Осип РН-231");
            Person personRight = new Person(@"Бунин Иван РН-231");

            Assert.AreEqual(1, PersonComparer.CompareByName(personLeft, personRight));
        }
Example #3
0
        public void TestGroupNameSurnameCompareDifferentGroup()
        {
            Person personLeft  = new Person(@"Бунин Иван РН-231");
            Person personRight = new Person(@"Бунин Иван РН-131");

            Assert.AreEqual(1, PersonComparer.CompareByGroupNameSurname(personLeft, personRight));
        }
Example #4
0
        public void TestNameCompareRightNullPerson()
        {
            Person personLeft  = new Person(@"Бунин Иван РН-231");
            Person personRight = null;

            Assert.AreEqual(1, PersonComparer.CompareByName(personLeft, personRight));
        }