예제 #1
0
        public void FourBook_CostFirstTest()
        {
            // Arrange
            GetCostTest sum = new GetCostTest();

            // Act
            string result = sum.NumberOfBooks(4);

            // Assert
            Assert.AreEqual("25.60", result);
        }
예제 #2
0
        public void OneBook_CostFirstTest()
        {
            // Arrange
            GetCostTest sum = new GetCostTest();

            // Act
            string result = sum.NumberOfBooks(8.00);

            // Assert
            Assert.AreEqual("8.00", result);
        }
예제 #3
0
        public void TwoBook_CostFirstTest()
        {
            // Arrange
            GetCostTest sum = new GetCostTest();

            // Act
            string result = sum.NumberOfBooks(2);

            // Assert
            Assert.AreEqual("15.20", result);
        }