public static void Restore()
        {
            current.ReverseChanges();
            int num = current.AssertCount;

            current              = current.prior;
            current.assertCount += num;
        }
示例#2
0
        /// <summary>
        /// Restores the last saved context and puts
        /// any saved settings back into effect.
        /// </summary>
        public static void Restore()
        {
            current.ReverseChanges();

            int latestAsserts = current.AssertCount;

            current              = current.prior;
            current.assertCount += latestAsserts;
        }