public void GetValidator_ReturnsODataQueryOptionsValidator40_ForODataVersion40() { IODataQueryOptionsValidator validator = ODataQueryOptionsValidator.GetValidator(ODataVersion.OData40); Assert.NotNull(validator); Assert.IsType <ODataQueryOptionsValidator40>(validator); }
public void GetValidator_Throws_NotSupportedException_For_Unsupported_ODataVersion() { Assert.Throws <NotSupportedException>(() => ODataQueryOptionsValidator.GetValidator(ODataVersion.Parse("3.0"))); }
public void GetValidator_Throws_ArgumentNullException_For_Null_ODataVersion() { Assert.Throws <ArgumentNullException>(() => ODataQueryOptionsValidator.GetValidator(null)); }