public void NoClaimSpecified_CannotReferenceValue_ApplicationExceptionExpected() { var hasClaimAuthorizeAttribute = new HasClaimAuthorizeAttribute(); var x = hasClaimAuthorizeAttribute.Value; }
public void ValueContainsColonCharacter_ArgumentExceptionExpected() { var hasClaimAuthorizeAttribute = new HasClaimAuthorizeAttribute("xyz", "this:test"); }
public void NoValueSpecified_EmptyValueExpected() { var hasClaimAuthorizeAttribute = new HasClaimAuthorizeAttribute("abc", ""); Assert.AreEqual("", hasClaimAuthorizeAttribute.Value); }
public void ValueSpecified_ValueExpected() { var hasClaimAuthorizeAttribute = new HasClaimAuthorizeAttribute("abc", "xyz"); Assert.AreEqual("xyz", hasClaimAuthorizeAttribute.Value); }
public void ClaimNameSpecifiedNoValueSpecified_ClaimNameExpected() { var hasClaimAuthorizeAttribute = new HasClaimAuthorizeAttribute("abc", ""); Assert.AreEqual("abc", hasClaimAuthorizeAttribute.Claim); }
public void NoClaimSpecified_NullReferenceExceptionExpected() { var hasClaimAuthorizeAttribute = new HasClaimAuthorizeAttribute("", ""); Assert.IsNotNull(hasClaimAuthorizeAttribute); }
public void CanCreate() { var hasClaimAuthorizeAttribute = new HasClaimAuthorizeAttribute("123", ""); Assert.IsNotNull(hasClaimAuthorizeAttribute); }