InitializeAndValidate() public method

public InitializeAndValidate ( Uri uri, UriFormatException &parsingError ) : void
uri Uri
parsingError UriFormatException
return void
Beispiel #1
0
        public static void InitializeAndValidate()
        {
            Uri           http   = new Uri(FullHttpUri);
            TestUriParser parser = new TestUriParser();

            parser.InitializeAndValidate(http, out UriFormatException error);
            Assert.NotNull(error);
        }
Beispiel #2
0
 public static void InitializeAndValidate_Null()
 {
     UriFormatException error = null;
     TestUriParser parser = new TestUriParser();
     Assert.Throws<System.NullReferenceException>(() => { parser.InitializeAndValidate(null, out error); }); 
 }
Beispiel #3
0
 public static void InitializeAndValidate()
 {
     http = new Uri(full_http);
     UriFormatException error = null;
     TestUriParser parser = new TestUriParser();
     parser.InitializeAndValidate(http, out error);
     Assert.NotNull(error);
 }