Exemple #1
0
        public void RunEquals_RunNoDiffers_false()
        {
            var crit = new JudgingCriterion()
            {
                Id = 5
            };
            var judge = new Judge()
            {
                Id = 8
            };
            var rc = new RoundContestant()
            {
                Id = 7
            };

            var j1 = new RunJudging(rc, judge, crit, 1, 7M);
            var j2 = new RunJudging(rc, judge, crit, 2, 6M);

            j1.Id = 1;
            j2.Id = 2;

            var result = j1.RunEquals(j2);

            Assert.IsFalse(result);
        }
Exemple #2
0
        public void RunEquals_AllButIdAndScoreEqual_true()
        {
            var crit = new JudgingCriterion()
            {
                Id = 5
            };
            var judge = new Judge()
            {
                Id = 8
            };
            var rc = new RoundContestant()
            {
                Id = 7
            };

            var j1 = new RunJudging(rc, judge, crit, 1, 7M);
            var j2 = new RunJudging(rc, judge, crit, 1, 6M);

            j1.Id = 1;
            j2.Id = 2;

            var result = j1.RunEquals(j2);

            Assert.IsTrue(result);
        }