public void ShouldHonorAnnotationFilterForV4()
        {
            ODataMessageReaderSettings readerSettings = new ODataMessageReaderSettings();

            readerSettings.MaxProtocolVersion      = ODataVersion.V4;
            readerSettings.ShouldIncludeAnnotation = name => name.StartsWith("ns1.");
            Assert.NotNull(readerSettings.ShouldIncludeAnnotation);
            Assert.True(readerSettings.ShouldSkipAnnotation("any.any"));
            Assert.False(readerSettings.ShouldSkipAnnotation("ns1.any"));
        }
        public void ShouldHonorAnnotationFilterForV3()
        {
            ODataMessageReaderSettings readerSettings = new ODataMessageReaderSettings();

            readerSettings.MaxProtocolVersion      = ODataVersion.V4;
            readerSettings.ShouldIncludeAnnotation = name => name.StartsWith("ns1.");
            readerSettings.ShouldIncludeAnnotation.Should().NotBeNull();
            readerSettings.ShouldSkipAnnotation("any.any").Should().BeTrue();
            readerSettings.ShouldSkipAnnotation("ns1.any").Should().BeFalse();
        }
        public void ShouldSkipAnnotationsByDefaultForV4()
        {
            ODataMessageReaderSettings readerSettings = new ODataMessageReaderSettings();

            readerSettings.MaxProtocolVersion = ODataVersion.V4;
            Assert.True(readerSettings.ShouldSkipAnnotation("any.any"));
        }