Beispiel #1
0
        public void CalculateTotalBruttoPrice()
        {
            // Arrange
            Product product = new Product(1, "Test product", 23, 2, 100, true);
            var expected = 246;

            // Act
            var actual = product.TotalBruttoPrice;

            // Assert
            Assert.AreEqual(expected, actual);
        }
Beispiel #2
0
        public void CalculateVATValue()
        {
            // Arrange
            Product product = new Product(1, "Test product", 23, 1, 100, true);
            var expected = 23;

            // Act
            var actual = product.VATValue;

            // Assert
            Assert.AreEqual(expected, actual);
        }