Пример #1
0
        public void DiscountCounterCorrect()
        {
            var actual   = ProductValidation.DiscountCounter(100, 10);
            int expected = -90;

            Assert.AreEqual(expected, actual);
        }
Пример #2
0
        public void DiscountCounterCorrectWithDouble()
        {
            var actual   = ProductValidation.DiscountCounter(102.3, 10.23);
            int expected = -90;

            Assert.AreEqual(expected, actual);
        }
Пример #3
0
 public void DiscountCounterWhereAllArgumentsIsNull()
 {
     Assert.That(() => ProductValidation.DiscountCounter(null, null), Throws.TypeOf <ArgumentException>());
 }