Esempio n. 1
0
        public static void RunTestCase(string name, string format)
        {
            var test = SimpleTestCases.Find(name);

            if (test == null)
            {
                Assert.Fail("Unable to find given test case {0}", name);
            }

            var settings = new TestDriverSettings
            {
                OutputFormat = format
            };

            test.Optimize = true;
            RunTestCase(test, settings);

            if (test.IsFailed)
            {
                Assert.Fail(test.Error);
            }
        }
Esempio n. 2
0
 public static void GenerateNUnitTestFixture(string path, string ns, string classname, string format)
 {
     GenerateNUnitTestFixture(path, ns, classname, format, SimpleTestCases.GetAllTestCases());
 }