Esempio n. 1
0
        public void CompareByType_CheckName_Test(string name1, string name2, int expectedValue)
        {
            var sk1 = new SkillData(1, name1)
            {
                Type = SkillTypes.Herb
            };
            var sk2 = new SkillData(2, name2)
            {
                Type = SkillTypes.Herb
            };

            Assert.That(SkillData.CompareByType(sk1, sk2), Is.EqualTo(expectedValue));
        }
Esempio n. 2
0
        public void CompareByType_Test(SkillTypes type1, SkillTypes type2, int expectedValue)
        {
            var sk1 = new SkillData(1, "Test1")
            {
                Type = type1
            };
            var sk2 = new SkillData(2, "Test2")
            {
                Type = type2
            };

            Assert.That(SkillData.CompareByType(sk1, sk2), Is.EqualTo(expectedValue));
        }
Esempio n. 3
0
        public void CompareByType_NullSkill2_Test()
        {
            var sk = new SkillData(1, "Test");

            Assert.That(SkillData.CompareByType(sk, null), Is.EqualTo(-1));
        }
Esempio n. 4
0
 public void CompareByType_BothNull_Test()
 {
     Assert.That(SkillData.CompareByType(null, null), Is.EqualTo(0));
 }
Esempio n. 5
0
        public void CompareByType_NullSkill1_Test()
        {
            var sk = new SkillData(1, "Test");

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