Beispiel #1
0
        public void bookProductNoException()
        {
            //Arrange
            IOrder order = new BookProduct();
            int    result;

            //Assert
            Assert.DoesNotThrow(() => order.ActionTaken(out result));
        }
Beispiel #2
0
        public void bookProductFailureTest()
        {
            //Arrange
            IOrder order = new BookProduct();
            int    result;

            //Act
            order.ActionTaken(out result);

            //Assert
            Assert.AreEqual(1, result);
        }