public void Runメソッドで処理を実行する()
        {
            int count = 0;
            var sut = new Runnable(new Task(() => { count++; }));

            sut.Run.Start();
            sut.Run.Wait();

            Assert.AreEqual(1, count);
        }
Example #2
0
 public BackgroundTask(Runnable runnable)
 {
     _runnable = runnable;
 }