예제 #1
0
        public void InvalidUri()
        {
            UriTest test = new UriTest()
            {
                Value = "not a / uri.com"
            };

            test = ValidateSettings <UriTest> .Validate(test);
        }
예제 #2
0
        public void ValidUri()
        {
            // can not perform this test as my router intervienes
            UriTest test = new UriTest()
            {
                Value = "http://www.microsoft.com"
            };

            test = ValidateSettings <UriTest> .Validate(test);
        }
예제 #3
0
파일: UriCas.cs 프로젝트: pmq20/mono_forked
        public void UnitTestReuse()
        {
            UriTest unit = new UriTest();

            unit.GetReady();

            unit.Constructors();
            unit.Constructor_DualHostPort();
            unit.RelativeCtor();
            unit.LeadingSlashes();
            unit.ConstructorsRejectRelativePath();
            unit.LocalPath();
            unit.LocalPath_FileHost();
            unit.LocalPath_Escape();
            unit.UnixPath();
            unit.Unc();
            unit.FromHex();
            unit.Unescape();
            unit.HexEscape();
            unit.HexUnescape();
            unit.IsHexDigit();
            unit.IsHexEncoding();
            unit.GetLeftPart();
            unit.NewsDefaultPort();
            unit.FragmentEscape();
            unit.CheckHostName2();
            unit.IsLoopback();
            unit.Equals1();
            unit.TestEquals2();
            unit.CaseSensitivity();
            unit.GetHashCodeTest();
            unit.MakeRelative();
            unit.RelativeUri();
            unit.ToStringTest();
            unit.CheckSchemeName();
            unit.CheckSchemeName_FirstChar();
            unit.CheckSchemeName_AnyOtherChar();
            unit.Segments1();
            unit.Segments2();
            unit.Segments3();
            unit.Segments5();
            unit.UnixLocalPath();
#if NET_2_0
            unit.PortMax();
#endif
        }