public static void GetComponents_Null() { TestUriParser parser = new TestUriParser(); Assert.Throws<System.NullReferenceException>(() => { parser.GetComponents(null, UriComponents.Host, UriFormat.SafeUnescaped); }); }