예제 #1
0
        public void Test___Method_Reset___Status_Stopped()
        {
            var testee = new NullActivity();

            testee.Stop();

            Assert.AreEqual(ActivityStatus.Stopped, testee.Status);

            testee.Reset();

            Assert.AreEqual(ActivityStatus.Created, testee.Status);
        }
예제 #2
0
        public async Task Test___Method_Reset___Status_Completed()
        {
            var testee = new NullActivity();

            await testee.Start();

            Assert.AreEqual(ActivityStatus.Completed, testee.Status);

            testee.Reset();

            Assert.AreEqual(ActivityStatus.Created, testee.Status);
        }