Created
July 15, 2015 00:39
-
-
Save vkhorikov/a6651aacc24f467eb166 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Fact] | |
public void Amount_shows_order_amount() | |
{ | |
// Arrange | |
var order = new Order(); | |
order.AddLine(10, new Product()); | |
order.AddLine(20, new Product()); | |
// Act | |
decimal amount = order.Amount; | |
// Assert | |
Assert.Equal(30, amount); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment