Exemplo n.º 1
0
        public void SetStateTestSimpleScenario()
        {
            GApplicationMock application = new GApplicationMock();

            GThreadMock thread = new GThreadMock();

            // NOTE: In fact, this exercises the State implementation found in GThreadMock
            thread.SetState(ThreadState.Scheduled);

            Assert.AreEqual(ThreadState.Scheduled, thread.State);
        }
Exemplo n.º 2
0
        public void SetStateTestSimpleScenario()
        {
            GApplicationMock application = new GApplicationMock();

            GThreadMock thread = new GThreadMock();

            // NOTE: In fact, this exercises the State implementation found in GThreadMock
            thread.SetState(ThreadState.Scheduled);

            Assert.AreEqual(ThreadState.Scheduled, thread.State);
        }