瀏覽代碼

Removing more obsolete code.

Bart De Smet 8 年之前
父節點
當前提交
4590f25ab8

+ 0 - 7
Ix.NET/Source/System.Interactive.Async.Tests/System/Linq/AsyncEnumerableExTests.cs

@@ -22,13 +22,6 @@ namespace Tests
             Assert.Throws<E>(a);
             Assert.Throws<E>(a);
         }
         }
 
 
-        [Obsolete("Don't use this, use Assert.ThrowsAsync and await it", true)]
-        public Task AssertThrows<E>(Func<Task> func)
-            where E : Exception
-        {
-            return Assert.ThrowsAsync<E>(func);
-        }
-
         public void AssertThrows<E>(Action a, Func<E, bool> assert)
         public void AssertThrows<E>(Action a, Func<E, bool> assert)
             where E : Exception
             where E : Exception
         {
         {

+ 0 - 7
Ix.NET/Source/System.Linq.Async.Tests/System/Linq/AsyncEnumerableTests.cs

@@ -22,13 +22,6 @@ namespace Tests
             Assert.Throws<E>(a);
             Assert.Throws<E>(a);
         }
         }
 
 
-        [Obsolete("Don't use this, use Assert.ThrowsAsync and await it", true)]
-        public Task AssertThrows<E>(Func<Task> func)
-            where E : Exception
-        {
-            return Assert.ThrowsAsync<E>(func);
-        }
-
         public void AssertThrows<E>(Action a, Func<E, bool> assert)
         public void AssertThrows<E>(Action a, Func<E, bool> assert)
             where E : Exception
             where E : Exception
         {
         {