private SetEachEnumerableThrowsExceptionWithNullActionTest ( ) : void | ||
Résultat | void |
public void SetEachEnumerableThrowsExceptionWithNullActionTest()
{
IEnumerable<string> target = new Collection<string>();
Action action = () => target.SetEach(null);
action.ShouldThrow<ArgumentNullException>();
}