示例#1
0
        public static AndConstraint <SystemToken> ShouldBeSystemToken(this PathSegmentToken token, string tokenIdentifier)
        {
            token.Should().BeOfType <SystemToken>();
            SystemToken systemToken = token.As <SystemToken>();

            systemToken.Identifier.Should().Be(tokenIdentifier);
            return(new AndConstraint <SystemToken>(systemToken));
        }
示例#2
0
        public static AndConstraint <NonSystemToken> ShouldBeNonSystemToken(this PathSegmentToken token, string tokenIdentifier)
        {
            token.Should().BeOfType <NonSystemToken>();
            NonSystemToken nonSystemToken = token.As <NonSystemToken>();

            nonSystemToken.Identifier.Should().Be(tokenIdentifier);
            return(new AndConstraint <NonSystemToken>(nonSystemToken));
        }