Authentication.Claims.Tests.AuthenticatedUserContextTests.HasCustomPropertyReturnsTrueWhenPropertyFound C# (CSharp) Method

HasCustomPropertyReturnsTrueWhenPropertyFound() private method

private HasCustomPropertyReturnsTrueWhenPropertyFound ( ) : void
return void
        public void HasCustomPropertyReturnsTrueWhenPropertyFound()
        {
            const string propertyName = "SomeProp";
            claimsIdentity.AddClaim(new Claim(ClaimTypePrefix.CustomProperty + propertyName, "Foo"));
            claimsIdentity.AddClaim(new Claim(ClaimTypePrefix.CustomProperty + "OtherProperty", "Bar"));

            Assert.IsTrue(sut.HasCustomProperty(propertyName));
        }