public void TypeProperties_Deny_Unrestricted() { HttpBrowserCapabilities cap = new StringHttpBrowserCapabilities(); Type t = cap.TagWriter; // note: right now the value is hardcoded in Mono, i.e. it doesn't come from the ini file Assert.IsTrue(((t == null) || (t == typeof(HtmlTextWriter))), "TagWriter"); }
public void StringProperties_Deny_Unrestricted() { HttpBrowserCapabilities cap = new StringHttpBrowserCapabilities(); Assert.IsNotNull(cap.Browser, "Browser"); Assert.IsNull(cap.Browsers, "Browsers"); Assert.IsNotNull(cap.Platform, "Platform"); Assert.IsNotNull(cap.Type, "Type"); Assert.IsNotNull(cap.Version, "Version"); }
public void GetClrVersions_Deny_Unrestricted() { HttpBrowserCapabilities cap = new StringHttpBrowserCapabilities(); #if NET_2_0 Assert.IsNull(cap.GetClrVersions(), "GetClrVersions"); #else Version[] versions = cap.GetClrVersions(); Assert.AreEqual(1, versions.Length, "GetClrVersions"); Assert.AreEqual("0.0", versions [0].ToString(), "Version[0]"); #endif }
public void StringProperties_Deny_Unrestricted () { HttpBrowserCapabilities cap = new StringHttpBrowserCapabilities (); Assert.IsNotNull (cap.Browser, "Browser"); #if NET_2_0 Assert.IsNull (cap.Browsers, "Browsers"); #endif Assert.IsNotNull (cap.Platform, "Platform"); Assert.IsNotNull (cap.Type, "Type"); Assert.IsNotNull (cap.Version, "Version"); }
public void GetClrVersions_Deny_Unrestricted () { HttpBrowserCapabilities cap = new StringHttpBrowserCapabilities (); #if NET_2_0 Assert.IsNull (cap.GetClrVersions (), "GetClrVersions"); #else Version[] versions = cap.GetClrVersions (); Assert.AreEqual (1, versions.Length, "GetClrVersions"); Assert.AreEqual ("0.0", versions [0].ToString (), "Version[0]"); #endif }
public void TypeProperties_Deny_Unrestricted () { HttpBrowserCapabilities cap = new StringHttpBrowserCapabilities (); Type t = cap.TagWriter; // note: right now the value is hardcoded in Mono, i.e. it doesn't come from the ini file Assert.IsTrue (((t == null) || (t == typeof (HtmlTextWriter))), "TagWriter"); }
public void GetClrVersions_Deny_Unrestricted() { HttpBrowserCapabilities cap = new StringHttpBrowserCapabilities(); Assert.IsNull(cap.GetClrVersions(), "GetClrVersions"); }
public void GetClrVersions_Deny_Unrestricted () { HttpBrowserCapabilities cap = new StringHttpBrowserCapabilities (); Assert.IsNull (cap.GetClrVersions (), "GetClrVersions"); }