public void FalseTest() { GenericIdentity identity = new GenericIdentity("foo"); Assert.IsTrue(identity.IsAuthenticated); AnonymousExpression expression = new AnonymousExpression(); Assert.IsFalse(expression.Evaluate(identity)); }
public void NotSupportedExceptionTest() { GenericIdentity identity = new GenericIdentity(String.Empty); GenericPrincipal principal = new GenericPrincipal(identity, null); AnonymousExpression expression = new AnonymousExpression(); Assert.IsTrue(expression.Evaluate(principal)); }