Ejemplo n.º 1
0
        public void Test2()
        {
            var product = new Product("NA","Pillow",100);
            //test if product is 0 for price
            Assert.Throws<InvalidOperationException>(

                ()=>product.price(0,"No Price")
            );