I want to upgrade from NUNIT 2.x to 3.x but i have tests like
[TestCase("12345", ExpectedResult = "SUCCESS")]
[TestCase("invalidkey", ExpectedException = typeof(ArgumentException))]
[TestCase(null, ExpectedException = typeof(ArgumentNullException))]
public string ReturnsStatus(string filePath)
{
// Arrange
// Act
Tuple<string, string> result = service.Create(filePath);
// Assert
return result.Item1;
}
How to rewrite this kind of tests? NUNIT 3.x does not have ExpectedException, that is my refactorization reason. I dont want to split into 3 tests. Thanks.