From 3b0e28938731b6b5ee8c68a26fcde33b9b32a38a Mon Sep 17 00:00:00 2001 From: Doug Bunting Date: Thu, 20 Nov 2014 10:09:28 -0800 Subject: [PATCH] Apply VS' FormatDocument and RemoveAndSort to all *.cs files - #EngineeringDay - this repo was relatively clean --- .../DefaultInlineConstraintResolver.cs | 1 - src/Microsoft.AspNet.Routing/RoutingServices.cs | 4 ---- .../ConstraintMatcherTest.cs | 2 +- .../RouteValueDictionaryTests.cs | 12 ++++++------ 4 files changed, 7 insertions(+), 12 deletions(-) diff --git a/src/Microsoft.AspNet.Routing/DefaultInlineConstraintResolver.cs b/src/Microsoft.AspNet.Routing/DefaultInlineConstraintResolver.cs index fbad3e786f..e0f02a6a58 100644 --- a/src/Microsoft.AspNet.Routing/DefaultInlineConstraintResolver.cs +++ b/src/Microsoft.AspNet.Routing/DefaultInlineConstraintResolver.cs @@ -6,7 +6,6 @@ using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Reflection; -using Microsoft.Framework.DependencyInjection; using Microsoft.Framework.OptionsModel; namespace Microsoft.AspNet.Routing diff --git a/src/Microsoft.AspNet.Routing/RoutingServices.cs b/src/Microsoft.AspNet.Routing/RoutingServices.cs index bd4035bd24..f534e0f846 100644 --- a/src/Microsoft.AspNet.Routing/RoutingServices.cs +++ b/src/Microsoft.AspNet.Routing/RoutingServices.cs @@ -2,12 +2,8 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; -using System.Threading.Tasks; -using Microsoft.AspNet.Http; -using Microsoft.AspNet.Routing; using Microsoft.Framework.ConfigurationModel; using Microsoft.Framework.DependencyInjection; -using Microsoft.Framework.DependencyInjection.NestedProviders; namespace Microsoft.AspNet.Routing { diff --git a/test/Microsoft.AspNet.Routing.Tests/ConstraintMatcherTest.cs b/test/Microsoft.AspNet.Routing.Tests/ConstraintMatcherTest.cs index 3e3f958a7b..00254ff874 100644 --- a/test/Microsoft.AspNet.Routing.Tests/ConstraintMatcherTest.cs +++ b/test/Microsoft.AspNet.Routing.Tests/ConstraintMatcherTest.cs @@ -3,8 +3,8 @@ using System.Collections.Generic; using Microsoft.AspNet.Http; -using Microsoft.AspNet.Routing.Logging; #if ASPNET50 +using Microsoft.AspNet.Routing.Logging; using Moq; #endif using Xunit; diff --git a/test/Microsoft.AspNet.Routing.Tests/RouteValueDictionaryTests.cs b/test/Microsoft.AspNet.Routing.Tests/RouteValueDictionaryTests.cs index 67ed463f44..2183d3f938 100644 --- a/test/Microsoft.AspNet.Routing.Tests/RouteValueDictionaryTests.cs +++ b/test/Microsoft.AspNet.Routing.Tests/RouteValueDictionaryTests.cs @@ -47,7 +47,7 @@ namespace Microsoft.AspNet.Routing.Tests public void CreateFromObject_CopiesPropertiesFromAnonymousType() { // Arrange - var obj = new {cool = "beans", awesome = 123}; + var obj = new { cool = "beans", awesome = 123 }; // Act var dict = new RouteValueDictionary(obj); @@ -62,7 +62,7 @@ namespace Microsoft.AspNet.Routing.Tests public void CreateFromObject_CopiesPropertiesFromRegularType() { // Arrange - var obj = new RegularType() { CoolnessFactor = 73}; + var obj = new RegularType() { CoolnessFactor = 73 }; // Act var dict = new RouteValueDictionary(obj); @@ -104,7 +104,7 @@ namespace Microsoft.AspNet.Routing.Tests public void CreateFromObject_CopiesPropertiesFromRegularType_IgnoresSetOnly() { // Arrange - var obj = new SetterOnly() {CoolSetOnly = false}; + var obj = new SetterOnly() { CoolSetOnly = false }; // Act var dict = new RouteValueDictionary(obj); @@ -117,7 +117,7 @@ namespace Microsoft.AspNet.Routing.Tests public void CreateFromObject_CopiesPropertiesFromRegularType_IncludesInherited() { // Arrange - var obj = new Derived() {TotallySweetProperty = true, DerivedProperty = false}; + var obj = new Derived() { TotallySweetProperty = true, DerivedProperty = false }; // Act var dict = new RouteValueDictionary(obj); @@ -207,7 +207,7 @@ namespace Microsoft.AspNet.Routing.Tests { private bool _coolSetOnly; - public bool CoolSetOnly { set { _coolSetOnly = value; }} + public bool CoolSetOnly { set { _coolSetOnly = value; } } } private class Base @@ -230,7 +230,7 @@ namespace Microsoft.AspNet.Routing.Tests public bool this[string key] { get { return false; } - set {} + set { } } } }