NUnit下载

http://www.nunit.org/index.php?p=download
应用教程
http://www.cnblogs.com/shcity/archive/2007/02/09/645920.html


      我没用过NUnit,但后来一找工作的时候,居然有公司以这个做为招聘条件之一.
当时我马上汗,感觉自己落伍了.于是找了NUnit来看了一下.
      终于一块石头落地了,所谓的NUnit,原来是这样.
     
     
 1 NUnit下载 using  System; 
 2 NUnit下载 using  NUnit.Framework; 
 3 NUnit下载  
 4 NUnit下载 namespace  NUnitQuickStart 
 5 NUnit下载
 6NUnit下载            [TestFixture] 
 7NUnit下载            public class NumersFixture 
 8NUnit下载            
 9NUnit下载                        [Test] 
10NUnit下载                        public void AddTwoNumbers() 
11NUnit下载                        
12NUnit下载                                    int a=1
13NUnit下载                                    int b=2
14NUnit下载                                    int sum=a+b; 
15NUnit下载                                    Assert.AreEqual(sum,3); 
16NUnit下载                        }
 
17NUnit下载            }
 
18NUnit下载}

19 NUnit下载



它实际上是让单元具备基本的,合理的存在性的测试.

你可能感兴趣的:(下载)