예제 #1
0
        public void Test_Prize_Comparison_Null()
        {
            PrizeLevel pl1 = new PrizeLevel();

            pl1.prizeValue = 100;

            Assert.IsTrue(pl1.CompareTo(null) > 0);
        }
예제 #2
0
        public void Test_Prize_Comparison()
        {
            PrizeLevel pl1 = new PrizeLevel();
            PrizeLevel pl2 = new PrizeLevel();

            pl1.prizeValue = 50;
            pl2.prizeValue = 100;

            Assert.IsTrue(pl1.CompareTo(pl2) < 0);
        }