public RowTestSuite CreateRowTestSuite(MethodInfo method)
		{
			if (method == null)
				throw new ArgumentNullException("method");
			
			RowTestSuite testSuite = new RowTestSuite(method);
			NUnitFramework.ApplyCommonAttributes(method, testSuite);
			
			return testSuite;
		}
        public RowTestSuite CreateRowTestSuite(MethodInfo method)
        {
            if (method == null)
            {
                throw new ArgumentNullException("method");
            }

            RowTestSuite testSuite = new RowTestSuite(method);

            NUnitFramework.ApplyCommonAttributes(method, testSuite);

            return(testSuite);
        }
예제 #3
0
        public Test BuildFrom(MethodInfo method)
        {
            if (method == null)
            {
                throw new ArgumentNullException("method");
            }

            RowTestSuite suite = _testFactory.CreateRowTestSuite(method);

            Attribute[] rows = RowTestFramework.GetRowAttributes(method);

            foreach (Attribute row in rows)
            {
                suite.Add(_testFactory.CreateRowTestCase(row, method));
            }

            return(suite);
        }