예제 #1
0
		public void DoWork_with_no_WhenComplete()
		{
			bool doWorkDone = false;

			var worker = new Worker();

			WorkerAction.Define()
				.DoWork(delegate { doWorkDone = true; })
				.Run(worker);

			Assert.IsTrue(doWorkDone, "work not done");
		}
예제 #2
0
		public void TearDown()
		{
			_worker = null;
		}
예제 #3
0
		public void SetUp()
		{
			_worker = new Worker();
		}