Inheritance: IDisposable
Ejemplo n.º 1
0
		private static void Run (TestCase testCase)
		{
			var runner = new TestRunner (testCase, TestCaseType.ReadDeferred);
			runner.RunTest ();

			runner = new TestRunner (testCase, TestCaseType.ReadImmediate);
			runner.RunTest ();

			runner = new TestRunner (testCase, TestCaseType.WriteFromDeferred);
			runner.RunTest();

			runner = new TestRunner (testCase, TestCaseType.WriteFromImmediate);
			runner.RunTest();
		}
Ejemplo n.º 2
0
        static void Run(TestCase testCase)
        {
            using (var runner = new TestRunner (testCase, TestCaseType.ReadDeferred))
                runner.RunTest ();

            using (var runner = new TestRunner (testCase, TestCaseType.ReadImmediate))
                runner.RunTest ();

            if (testCase.ReadOnly)
                return;

            using (var runner = new TestRunner (testCase, TestCaseType.WriteFromDeferred))
                runner.RunTest ();

            using (var runner = new TestRunner (testCase, TestCaseType.WriteFromImmediate))
                runner.RunTest ();
        }