コード例 #1
0
		public RowTestSuite CreateRowTestSuite(MethodInfo method)
		{
			if (method == null)
				throw new ArgumentNullException("method");
			
			RowTestSuite testSuite = new RowTestSuite(method);
			NUnitFramework.ApplyCommonAttributes(method, testSuite);
			
			return testSuite;
		}
コード例 #2
0
        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
ファイル: RowTestAddIn.cs プロジェクト: pmq20/mono_forked
        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);
        }