public void MetadataBinderProcessTopWithNegativeNumberShouldThrow() { Action metadataBinderAction = () => MetadataBinder.ProcessTop(-1); metadataBinderAction.ShouldThrow <ODataException>().WithMessage( ODataErrorStrings.MetadataBinder_TopRequiresNonNegativeInteger("-1")); }
public void MetadataBinderProcessTopWithPositiveNumberShouldReturnNumber() { long?result = MetadataBinder.ProcessTop(1); result.Should().Be(1); }
public void MetadataBinderProcessTopWithPositiveNumberShouldReturnNumber() { long?result = MetadataBinder.ProcessTop(1); Assert.Equal(1, result); }
public void MetadataBinderProcessTopWithNullReturnsNull() { long?result = MetadataBinder.ProcessTop(null); result.Should().Be(null); }
public void MetadataBinderProcessTopWithNullReturnsNull() { long?result = MetadataBinder.ProcessTop(null); Assert.Null(result); }