Last active
March 11, 2018 19:28
-
-
Save BartusZak/8611a2bfd09e41d80df11ab75788eb0b to your computer and use it in GitHub Desktop.
Action does not contain a definition for ShouldThrow.
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
using System; | |
using Xunit; | |
namespace CustomerValidator.Tests | |
{ | |
public class CustomerValidatorTests | |
{ | |
[Fact] | |
public void WhenCustomerIsNull_ThenArgumentNullExceptionIsThrown() | |
{ | |
var validator = new CustomerTDD.CustomerValidator(); | |
Action action = () => validator.Validate(null); | |
action.ShouldThrow<ArgumentNullException>(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment