Пример #1
0
        public void Random_Should_Not_Trigger_When_Randomizer_Returns_Less_Than_Zero_Point_Five(double rnd)
        {
            var      randomizer = new TestRandomizer(rnd);
            ITrigger t          = new RandomTrigger(randomizer);

            var result = t.WillAffect();

            Assert.False(result);
        }
Пример #2
0
        public void Random_Should_Trigger_When_Randomizer_Returns_Zero_Point_Five_Or_Higher(double rnd)
        {
            var      randomizer = new TestRandomizer(rnd);
            ITrigger t          = new RandomTrigger(randomizer);

            var result = t.WillAffect();

            Assert.True(result);
        }