diff options
author | davidmatson <dmatson@microsoft.com> | 2012-10-24 23:05:47 +0400 |
---|---|---|
committer | davidmatson <dmatson@microsoft.com> | 2012-10-25 02:47:58 +0400 |
commit | 54777c525a940d243e69e089c6a69aebd7878070 (patch) | |
tree | a82727fb77e949153b317152096d469dad8a7cfb | |
parent | 540cccefebf933f499fc2758cc833ad24c60fe71 (diff) |
Coding conventions cleanup
-rw-r--r-- | test/System.Web.Http.OData.Test/OData/Query/Expressions/FilterBinderTests.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/System.Web.Http.OData.Test/OData/Query/Expressions/FilterBinderTests.cs b/test/System.Web.Http.OData.Test/OData/Query/Expressions/FilterBinderTests.cs index 04454dc6..3504cffd 100644 --- a/test/System.Web.Http.OData.Test/OData/Query/Expressions/FilterBinderTests.cs +++ b/test/System.Web.Http.OData.Test/OData/Query/Expressions/FilterBinderTests.cs @@ -404,7 +404,7 @@ namespace System.Web.Http.OData.Query.Expressions ODataQuerySettings settings = new ODataQuerySettings { HandleNullPropagation = HandleNullPropagationOption.True, - LambdaNestingLimit = int.MaxValue + LambdaNestingLimit = Int32.MaxValue }; Assert.Throws<ODataException>(() => Bind(filter, settings), "The recursion limit has been exceeded."); @@ -417,7 +417,7 @@ namespace System.Web.Http.OData.Query.Expressions ODataQuerySettings settings = new ODataQuerySettings { HandleNullPropagation = HandleNullPropagationOption.True, - LambdaNestingLimit = int.MaxValue + LambdaNestingLimit = Int32.MaxValue }; Expression<Func<Product, bool>> expression = Bind(filter, settings); @@ -750,7 +750,7 @@ namespace System.Web.Http.OData.Query.Expressions [InlineData("Abcd", 5, "", true, typeof(ArgumentOutOfRangeException))] public void StringSubstringStart(string productName, int startIndex, string compareString, bool withNullPropagation, object withoutNullPropagation) { - string filter = string.Format("substring(ProductName, {0}) eq '{1}'", startIndex, compareString); + string filter = String.Format("substring(ProductName, {0}) eq '{1}'", startIndex, compareString); var filters = VerifyQueryDeserialization(filter); RunFilters(filters, @@ -774,7 +774,7 @@ namespace System.Web.Http.OData.Query.Expressions [InlineData("Abcd", 5, -1, "", true, typeof(ArgumentOutOfRangeException))] public void StringSubstringStartAndLength(string productName, int startIndex, int length, string compareString, bool withNullPropagation, object withoutNullPropagation) { - string filter = string.Format("substring(ProductName, {0}, {1}) eq '{2}'", startIndex, length, compareString); + string filter = String.Format("substring(ProductName, {0}, {1}) eq '{2}'", startIndex, length, compareString); var filters = VerifyQueryDeserialization(filter); RunFilters(filters, @@ -789,7 +789,7 @@ namespace System.Web.Http.OData.Query.Expressions public void StringSubstringOf(string productName, bool withNullPropagation, object withoutNullPropagation) { // In OData, the order of parameters is actually reversed in the resulting - // string.Contains expression + // String.Contains expression var filters = VerifyQueryDeserialization( "substringof('Abc', ProductName)", @@ -1364,7 +1364,7 @@ namespace System.Web.Http.OData.Query.Expressions private FilterQueryNode CreateFilterNode(string filter, IEdmModel model) { - var queryUri = new Uri(_serviceBaseUri, string.Format("Products?$filter={0}", Uri.EscapeDataString(filter))); + var queryUri = new Uri(_serviceBaseUri, String.Format("Products?$filter={0}", Uri.EscapeDataString(filter))); SemanticTree semanticTree = SemanticTree.ParseUri(queryUri, _serviceBaseUri, model); return semanticTree.Query as FilterQueryNode; } |