Inheritance: IDisposable
Esempio 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();
		}
Esempio 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 ();
        }