Skip to content

Instantly share code, notes, and snippets.

@JamesBender
Last active December 25, 2015 07:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JamesBender/6941854 to your computer and use it in GitHub Desktop.
Save JamesBender/6941854 to your computer and use it in GitHub Desktop.
[Test]
[ExpectedException(typeof(InvalidOrderException))]
public void WhenAUserAttemptsToOrderAnItemWithAQuantityOfZeroThrowInvalidOrderException()
{
//Arrange
//Act
orderService.PlaceOrder(customerId, shoppingCart);
//Assert
Mock.Assert(orderDataService);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment