public void when_creating_xpath_tag_with_valid_values() { var result = _builder.GetTagNamePart("valid:TagName"); result.ShouldBe("valid:TagName"); _xPathValidator.Received(1).ValidateQName("valid:TagName", "Tag Name"); _xPathValidator.DidNotReceiveWithAnyArgs().ValidateNCName(Arg.Any <string>(), Arg.Any <string>()); _xPathValidator.Received(1).IsReservedFunctionName("valid:TagName"); _cssValidator.DidNotReceiveWithAnyArgs().ValidateClassName(Arg.Any <string>()); }