浏览代码

Cleaning up more test code.

Bart De Smet 8 年之前
父节点
当前提交
52528a1adf

+ 3 - 2
Ix.NET/Source/System.Interactive.Tests/AssertEx.cs

@@ -1,6 +1,7 @@
 // Licensed to the .NET Foundation under one or more agreements.
 // The .NET Foundation licenses this file to you under the Apache 2.0 License.
 // See the LICENSE file in the project root for more information. 
+
 using Xunit;
 using System;
 
@@ -37,7 +38,7 @@ namespace Tests
         {
             try
             {
-                action();   
+                action();
             }
             catch (AggregateException ex)
             {
@@ -47,4 +48,4 @@ namespace Tests
             }
         }
     }
-}
+}

+ 1 - 0
Ix.NET/Source/System.Interactive.Tests/NopObserver.cs

@@ -1,6 +1,7 @@
 // Licensed to the .NET Foundation under one or more agreements.
 // The .NET Foundation licenses this file to you under the Apache 2.0 License.
 // See the LICENSE file in the project root for more information. 
+
 using System;
 
 namespace Tests

+ 1 - 0
Ix.NET/Source/System.Interactive.Tests/Tests.Aggregates.cs

@@ -1,6 +1,7 @@
 // Licensed to the .NET Foundation under one or more agreements.
 // The .NET Foundation licenses this file to you under the Apache 2.0 License.
 // See the LICENSE file in the project root for more information. 
+
 using System;
 using System.Text;
 using System.Collections.Generic;

+ 2 - 1
Ix.NET/Source/System.Interactive.Tests/Tests.Buffering.cs

@@ -1,6 +1,7 @@
 // Licensed to the .NET Foundation under one or more agreements.
 // The .NET Foundation licenses this file to you under the Apache 2.0 License.
 // See the LICENSE file in the project root for more information. 
+
 using System;
 using System.Text;
 using System.Collections.Generic;
@@ -278,7 +279,7 @@ namespace Tests
             HasNext(e1, 0);
             HasNext(e1, 1);
             HasNext(e1, 2);
-            
+
             var e2 = rng.GetEnumerator();
             HasNext(e2, 3);
             HasNext(e2, 4);

+ 3 - 3
Ix.NET/Source/System.Interactive.Tests/Tests.Creation.cs

@@ -1,13 +1,13 @@
 // Licensed to the .NET Foundation under one or more agreements.
 // The .NET Foundation licenses this file to you under the Apache 2.0 License.
 // See the LICENSE file in the project root for more information. 
+
 using System;
-using System.Text;
+using System.Collections;
 using System.Collections.Generic;
 using System.Linq;
-using Xunit;
-using System.Collections;
 using System.Threading;
+using Xunit;
 
 namespace Tests
 {

+ 1 - 1
Ix.NET/Source/System.Interactive.Tests/Tests.Exceptions.cs

@@ -1,8 +1,8 @@
 // Licensed to the .NET Foundation under one or more agreements.
 // The .NET Foundation licenses this file to you under the Apache 2.0 License.
 // See the LICENSE file in the project root for more information. 
+
 using System;
-using System.Text;
 using System.Collections.Generic;
 using System.Linq;
 using Xunit;

+ 1 - 1
Ix.NET/Source/System.Interactive.Tests/Tests.Imperative.cs

@@ -1,8 +1,8 @@
 // Licensed to the .NET Foundation under one or more agreements.
 // The .NET Foundation licenses this file to you under the Apache 2.0 License.
 // See the LICENSE file in the project root for more information. 
+
 using System;
-using System.Text;
 using System.Collections.Generic;
 using System.Linq;
 using Xunit;

+ 2 - 2
Ix.NET/Source/System.Interactive.Tests/Tests.Multiple.cs

@@ -1,8 +1,8 @@
 // Licensed to the .NET Foundation under one or more agreements.
 // The .NET Foundation licenses this file to you under the Apache 2.0 License.
 // See the LICENSE file in the project root for more information. 
+
 using System;
-using System.Text;
 using System.Collections.Generic;
 using System.Linq;
 using Xunit;
@@ -38,7 +38,7 @@ namespace Tests
 
             var res = xss.Concat().Select(x => i + " - " + x).ToList();
 
-            Assert.True(Enumerable.SequenceEqual(res, new[] { 
+            Assert.True(Enumerable.SequenceEqual(res, new[] {
                 "1 - 0",
                 "2 - 0",
                 "2 - 1",

+ 3 - 5
Ix.NET/Source/System.Interactive.Tests/Tests.Qbservable.cs

@@ -3,14 +3,12 @@
 // See the LICENSE file in the project root for more information. 
 
 using System;
-using System.Collections.Generic;
+using System.ComponentModel;
 using System.Linq;
-using System.Text;
+using System.Linq.Expressions;
 using System.Reflection;
-using Xunit;
 using System.Runtime.CompilerServices;
-using System.Linq.Expressions;
-using System.ComponentModel;
+using Xunit;
 
 namespace Tests
 {

+ 2 - 2
Ix.NET/Source/System.Interactive.Tests/Tests.Single.cs

@@ -1,8 +1,8 @@
 // Licensed to the .NET Foundation under one or more agreements.
 // The .NET Foundation licenses this file to you under the Apache 2.0 License.
 // See the LICENSE file in the project root for more information. 
+
 using System;
-using System.Text;
 using System.Collections.Generic;
 using System.Linq;
 using Xunit;
@@ -351,7 +351,7 @@ namespace Tests
         [Fact]
         public void TakeLast_TakeZero()
         {
-            var e = Enumerable.Range(1, 5) ;
+            var e = Enumerable.Range(1, 5);
             var r = e.TakeLast(0).ToList();
             Assert.True(Enumerable.SequenceEqual(r, Enumerable.Empty<int>()));
         }

+ 1 - 4
Ix.NET/Source/System.Interactive.Tests/Tests.cs

@@ -1,16 +1,13 @@
 // Licensed to the .NET Foundation under one or more agreements.
 // The .NET Foundation licenses this file to you under the Apache 2.0 License.
 // See the LICENSE file in the project root for more information. 
+
 using System;
-using System.Text;
 using System.Collections.Generic;
-using System.Linq;
 using Xunit;
 
-
 namespace Tests
 {
-    
     public partial class Tests
     {
 #pragma warning disable xUnit1013 // Public method should be marked as test