コード例 #1
0
        public void ProcessOrder_Success_Test()
        {
            //arrange
            Product product = new Product()
            {
                Type = "Book", Name = "Book1"
            };
            string message = "Book Order processed for: Book1";
            //act
            var result = bookProcessor.ProcessOrder(product);

            //assert
            Assert.AreEqual(message, result);
        }