public void GetMetadataPage_With_NonPositive_Page_Throws_ArgumentOutOfRangeException(int input) { //the call to ToList ensures the IEnumerable is evaluated mockClient.GetMetadataPage(input).ToList(); }
public void GetMetadataPage_With_NonPositive_Page_Throws_ArgumentOutOfRangeException(int input) { //the call to ToList ensures the IEnumerable is evaluated Assert.That(() => mockClient.GetMetadataPage(input).ToList(), Throws.TypeOf <ArgumentOutOfRangeException>()); }