public static void InitializeAndValidate_Null() { UriFormatException error = null; TestUriParser parser = new TestUriParser(); Assert.Throws<System.NullReferenceException>(() => { parser.InitializeAndValidate(null, out error); }); }