如果不能,那真让人失望。。

解决方案 »

  1.   

    那当然可以了。
    比如有一个被测试的方法声明如下:public void Insert(CountryInfo countryInfo) 如果选择为单个方法生成代码的话,则NUnitPartner可以生成如下代码namespace Adex.InterBaseDAL.Test {
        using System;
        using NUnit.Framework;
        using Adex.InterBaseDAL;
        using Adex.Model;
        
        
        [TestFixture()]
        public class TestCountry {
            
            [Test()]
            public virtual void TestInsert() {
                Country __Country = new Country();
                
                
                CountryInfo __countryInfo = new CountryInfo();
                __countryInfo.country_code = "country_code";
                __countryInfo.country_name = "country_name";
                
                __Country.Insert(__countryInfo);
            }
        }
    }
    ---------------------------------------
    NUnitPartner--自动测试用例生成
    http://www.freewebs.com/edwinyeah/