예제 #1
0
        public void TestShutdownTwice()
        {
            IEventModule anotherEventModule = new EventModule();

            anotherEventModule.MainThreadId = Thread.CurrentThread.ManagedThreadId;
            anotherEventModule.Init();
            anotherEventModule.ShutDown();
            Assert.Throws <InvalidOperationException>(() => anotherEventModule.ShutDown());
        }
예제 #2
0
        public void TestInitBeforeSettingMainThreadId()
        {
            IEventModule anotherEventModule = new EventModule();

            Assert.Throws <InvalidOperationException>(() => anotherEventModule.Init());
        }