static Test CreateTestSuite (MethodInfo method)
		{
			var suite = new DecompilerTestSuite (method);
			NUnitFramework.ApplyCommonAttributes (method, suite);
			PopulateTestSuite (method, suite);
			return suite;
		}
Example #2
0
        static Test CreateTestSuite(MethodInfo method)
        {
            var suite = new DecompilerTestSuite(method);

            NUnitFramework.ApplyCommonAttributes(method, suite);
            PopulateTestSuite(method, suite);
            return(suite);
        }
		static void PopulateTestSuite (MethodInfo method, DecompilerTestSuite suite)
		{
			var attribute = GetTestAttribute (method);

			if (attribute.TestDebug)
				suite.Add (CreateTestCase (method, attribute, CompilationMode.Debug));

			if (attribute.TestRelease)
				suite.Add (CreateTestCase (method, attribute, CompilationMode.Release));
		}
Example #4
0
        static void PopulateTestSuite(MethodInfo method, DecompilerTestSuite suite)
        {
            var attribute = GetTestAttribute(method);

            if (attribute.TestDebug)
            {
                suite.Add(CreateTestCase(method, attribute, CompilationMode.Debug));
            }

            if (attribute.TestRelease)
            {
                suite.Add(CreateTestCase(method, attribute, CompilationMode.Release));
            }
        }