public void TestInvalidInput0() { ValidUriModel0 uriData = null; ArgumentNullException e = null; try { var uri = uriData.ToUri(); } catch (ArgumentNullException exception) { e = exception; } Assert.That(e, Is.Not.Null); }
public void TestInvalidInput2() { var uriData = new ValidUriModel0 { Base = null }; UriFormatException e = null; try { var uri = uriData.ToUri(); } catch (UriFormatException exception) { e = exception; } Assert.That(e, Is.Not.Null); Assert.That(e.Message, Is.EqualTo("The object's Base URI Property Base was null.")); }