public void InitTest() { SecurityCacheItem item = new SecurityCacheItem(); Assert.IsNull(item.Identity); Assert.IsNull(item.Principal); Assert.IsNull(item.Profile); Assert.IsTrue(item.IsRemoveable); }
public void InitTest() { SecurityCacheItem item = new SecurityCacheItem(); Assert.IsNull(item.Identity); Assert.IsNull(item.Principal); Assert.IsNull(item.Profile); Assert.IsTrue(item.IsRemoveable); }
public void PropertyTest() { SecurityCacheItem item = new SecurityCacheItem(); item.Identity = new GenericIdentity("test"); Assert.AreEqual("test", item.Identity.Name); item.Principal = new GenericPrincipal(new GenericIdentity("test"), new string[0]); Assert.AreEqual("test", item.Principal.Identity.Name); item.Profile = 0; Assert.AreEqual(0, (Int32)item.Profile); Assert.IsFalse(item.IsRemoveable); }
public void PropertyTest() { SecurityCacheItem item = new SecurityCacheItem(); item.Identity = new GenericIdentity("test"); Assert.AreEqual("test", item.Identity.Name); item.Principal = new GenericPrincipal(new GenericIdentity("test"), new string[0]); Assert.AreEqual("test", item.Principal.Identity.Name); item.Profile = 0; Assert.AreEqual(0, (Int32)item.Profile); Assert.IsFalse(item.IsRemoveable); }