Example #1
0
        public void Compare_Test(string name1, string name2, int expectedValue)
        {
            var sk1 = new SkillData(1, name1);
            var sk2 = new SkillData(2, name2);

            Assert.That(SkillData.Compare(sk1, sk2), Is.EqualTo(expectedValue));
        }
Example #2
0
        public void Compare_NullSkill1_Test()
        {
            var sk = new SkillData(1, "Test");

            Assert.That(SkillData.Compare(null, sk), Is.EqualTo(1));
        }
Example #3
0
 public void Compare_BothNull_Test()
 {
     Assert.That(SkillData.Compare(null, null), Is.EqualTo(0));
 }
Example #4
0
        public void Compare_NullSkill2_Test()
        {
            var sk = new SkillData(1, "Test");

            Assert.That(SkillData.Compare(sk, null), Is.EqualTo(-1));
        }