Пример #1
0
        public void TestRandomNumb()
        {
            // Average - create object of MyNumber
            MyNumber number = new MyNumber();

            // Act - get random number
            number.GetRandom();

            // Asser - check that numbers is match
            // MyNumber.PreviousNumb = 0;
            Assert.AreEqual(MyNumber.PreviousNumb, 0);

            // Asser - check that numbers is not match
            Assert.AreNotEqual(MyNumber.PreviousNumb, number.GetRandom());
        }
Пример #2
0
 public DataRoulette()
 {
     numb = new MyNumber();
     img = new MyImage();
 }