public static void Restore() { current.ReverseChanges(); int num = current.AssertCount; current = current.prior; current.assertCount += num; }
/// <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; }