Przeglądaj źródła

Removing some obsolete code.

Bart De Smet 8 lat temu
rodzic
commit
e9e85e4af6

+ 0 - 8
Ix.NET/Source/System.Interactive.Async.Tests/AsyncTests.cs

@@ -22,17 +22,9 @@ namespace Tests
             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)
             where E : Exception
         {
-
             var hasFailed = false;
 
             try