Beispiel #1
0
        public void MetadataBinderProcessSkipWithNegativeNumberShouldThrow()
        {
            Action metadataBinderAction = () => MetadataBinder.ProcessSkip(-1);

            metadataBinderAction.ShouldThrow <ODataException>().WithMessage(
                ODataErrorStrings.MetadataBinder_SkipRequiresNonNegativeInteger("-1"));
        }
Beispiel #2
0
        public void MetadataBinderProcessSkipWithPositiveNumberShouldReturnNumber()
        {
            long?result = MetadataBinder.ProcessSkip(1);

            result.Should().Be(1);
        }
Beispiel #3
0
        public void MetadataBinderProcessSkipWithPositiveNumberShouldReturnNumber()
        {
            long?result = MetadataBinder.ProcessSkip(1);

            Assert.Equal(1, result);
        }
Beispiel #4
0
        public void MetadataBinderProcessSkipWithNullReturnsNull()
        {
            long?result = MetadataBinder.ProcessSkip(null);

            result.Should().Be(null);
        }
Beispiel #5
0
        public void MetadataBinderProcessSkipWithNullReturnsNull()
        {
            long?result = MetadataBinder.ProcessSkip(null);

            Assert.Null(result);
        }