public void IsSystemQueryOption_Returns_False_For_Unrecognized_Query_Name() { // Arrange & Act & Assert Assert.False(ODataQueryOptions.IsSystemQueryOption("$invalidqueryname")); }
public void GetNextPageLink_ThatTakesUri_GetsNextPageLink() { Uri nextPageLink = ODataQueryOptions.GetNextPageLink(new Uri("http://localhost/Customers?$filter=Age ge 18"), 10); Assert.Equal("http://localhost/Customers?$filter=Age%20ge%2018&$skip=10", nextPageLink.AbsoluteUri); }
public void IsSystemQueryOption_Returns_True_For_All_Supported_Query_Names(string queryName) { // Arrange & Act & Assert Assert.True(ODataQueryOptions.IsSystemQueryOption(queryName)); }