浏览代码

Remove a wrapper for AsyncLock in the corresponding test. It is unclear why that was useful once... (#552)

Daniel C. Weber 7 年之前
父节点
当前提交
a9e2277be5
共有 1 个文件被更改,包括 0 次插入34 次删除
  1. 0 34
      Rx.NET/Source/tests/Tests.System.Reactive/Tests/Concurrency/AsyncLockTest.cs

+ 0 - 34
Rx.NET/Source/tests/Tests.System.Reactive/Tests/Concurrency/AsyncLockTest.cs

@@ -95,39 +95,5 @@ namespace ReactiveTests.Tests
             Assert.False(l3);
             Assert.False(l4);
         }
-
-        public class AsyncLock
-        {
-            object instance;
-
-            public AsyncLock()
-            {
-                instance = typeof(Scheduler).GetTypeInfo().Assembly.GetType("System.Reactive.Concurrency.AsyncLock").GetConstructor(new Type[] { }).Invoke(new object[] { });
-            }
-
-            public void Wait(Action action)
-            {
-                try
-                {
-                    instance.GetType().GetMethod(nameof(AsyncLock.Wait)).Invoke(instance, new object[] { action });
-                }
-                catch (TargetInvocationException ex)
-                {
-                    throw ex.InnerException;
-                }
-            }
-
-            public void Dispose()
-            {
-                try
-                {
-                    instance.GetType().GetMethod(nameof(AsyncLock.Dispose)).Invoke(instance, new object[0]);
-                }
-                catch (TargetInvocationException ex)
-                {
-                    throw ex.InnerException;
-                }
-            }
-        }
     }
 }