Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/NRefactory.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Krüger <mkrueger@xamarin.com>2014-10-27 17:08:37 +0300
committerMike Krüger <mkrueger@xamarin.com>2014-10-27 17:08:37 +0300
commita1ef6cbc329d5bd8b58e99419a8e4036cd3868be (patch)
treef0129c637896158c3ec02f55a44f4483acd26023 /ICSharpCode.NRefactory.Tests
parent072f298ae97d3d73d50723514f734c274924b0cd (diff)
Fixed sort usings.
Diffstat (limited to 'ICSharpCode.NRefactory.Tests')
-rw-r--r--ICSharpCode.NRefactory.Tests/CSharp/CodeActions/SortUsingsTests.cs50
1 files changed, 47 insertions, 3 deletions
diff --git a/ICSharpCode.NRefactory.Tests/CSharp/CodeActions/SortUsingsTests.cs b/ICSharpCode.NRefactory.Tests/CSharp/CodeActions/SortUsingsTests.cs
index af9b4c33..577b09bf 100644
--- a/ICSharpCode.NRefactory.Tests/CSharp/CodeActions/SortUsingsTests.cs
+++ b/ICSharpCode.NRefactory.Tests/CSharp/CodeActions/SortUsingsTests.cs
@@ -88,12 +88,14 @@ using System.Linq;
using Sys = System;
using System;
using FooAlias = Foo;
-using Linq = System.Linq;", @"using System;
+using Linq = System.Linq;",
+
+@"using System;
using System.Linq;
using Foo;
+using FooAlias = Foo;
using Linq = System.Linq;
-using Sys = System;
-using FooAlias = Foo;");
+using Sys = System;");
}
[Test]
@@ -122,5 +124,47 @@ using B;
using C;
#endif");
}
+
+ /// <summary>
+ /// Bug 24015 - Sort usings yields strange result
+ /// </summary>
+ [Test]
+ public void TestBug24015()
+ {
+ Test<SortUsingsAction>(@"$using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using MonoMac.AppKit;
+using MonoMac.Foundation;
+using ReactiveUI;
+using Splat;
+using Xamarin;
+using XTractor.Contracts.Services;
+using XTractor.Platforms.Contracts;
+using XTractor.UI.Core;
+using XTractor.UI.Services;
+using XTractor.UI.ViewModels;
+using XTractor.UI.Mac.Services;
+using XTractor.UI.Mac.Views.Helpers;
+",
+ @"using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using MonoMac.AppKit;
+using MonoMac.Foundation;
+using ReactiveUI;
+using Splat;
+using Xamarin;
+using XTractor.Contracts.Services;
+using XTractor.Platforms.Contracts;
+using XTractor.UI.Core;
+using XTractor.UI.Mac.Services;
+using XTractor.UI.Mac.Views.Helpers;
+using XTractor.UI.Services;
+using XTractor.UI.ViewModels;
+");
+ }
}
}