public void TestPatchDnsSuffixNegative() { Assert.Throws <ArgumentOutOfRangeException>(() => EnvironmentExtensions.PatchDnsSuffix(null, null)); Assert.Throws <ArgumentOutOfRangeException>(() => EnvironmentExtensions.PatchDnsSuffix(new Uri("/", UriKind.Relative), " ")); Assert.Throws <ArgumentOutOfRangeException>(() => new Uri("https://manage.windowsazure.com/subscriptions").PatchDnsSuffix(" ")); }