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)); }
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)); }