Пример #1
0
        public void StopNotExisting()
        {
            var msw = new MultiStopwatch();

            msw.Stop("test");
        }
Пример #2
0
        public void StopExistingThatRuns()
        {
            var msw = new MultiStopwatch();
            var start = msw.Start("test");
            var stop = msw.Stop("test");

            Assert.AreEqual(start, stop);
            Assert.IsFalse(stop.IsRunning);
        }