谁能帮我看看这段单元测试代码什么意思啊?
#if UNIT_TESTSusing System.Threading;
using NUnit.Framework;
namespace Microsoft.Practices.EnterpriseLibrary.Caching.Tests
...{
public class BackgroundSchedulerFixture
...{
public void SchedulerCanBeStoppedWhenRequested()
...{
BackgroundScheduler scheduler = new BackgroundScheduler(null, null);
scheduler.Start();
Thread.Sleep(2500);
Assert.IsTrue(scheduler.IsActive);
scheduler.Stop();
Thread.Sleep(10000);
Assert.IsFalse(scheduler.IsActive);
}
}
}
#endif
页:
[1]