コード例 #1
0
        public void ParseFilterWithOpenPropertyAfterCastExpectException()
        {
            Action parse = () => ParseFilter("Critics/Fully.Qualified.Namespace.Dog/any()", HardCodedTestModel.TestModel, HardCodedTestModel.GetPaintingType());

            var expectedMessage =
                ODataErrorStrings.MetadataBinder_HierarchyNotFollowed(
                    HardCodedTestModel.GetDogType().FullTypeName(),
                    "<null>");

            parse.ShouldThrow <ODataException>().WithMessage(expectedMessage);
        }