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));
		}
示例#2
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));
            }
        }