public void MetadataBinderProcessSkipWithNegativeNumberShouldThrow() { Action metadataBinderAction = () => MetadataBinder.ProcessSkip(-1); metadataBinderAction.ShouldThrow <ODataException>().WithMessage( ODataErrorStrings.MetadataBinder_SkipRequiresNonNegativeInteger("-1")); }
public void MetadataBinderProcessSkipWithPositiveNumberShouldReturnNumber() { long?result = MetadataBinder.ProcessSkip(1); result.Should().Be(1); }
public void MetadataBinderProcessSkipWithPositiveNumberShouldReturnNumber() { long?result = MetadataBinder.ProcessSkip(1); Assert.Equal(1, result); }
public void MetadataBinderProcessSkipWithNullReturnsNull() { long?result = MetadataBinder.ProcessSkip(null); result.Should().Be(null); }
public void MetadataBinderProcessSkipWithNullReturnsNull() { long?result = MetadataBinder.ProcessSkip(null); Assert.Null(result); }