NUnit.Framework的使用方法演示

 1 using NUnit.Framework;
 2 
 3 namespace CheckExcel
 4 {
 5     [TestFixture]
 6     public class TestExcelHelper
 7     {
 8         /// <summary>
 9         /// 文件名
10         /// </summary>
11         string fileName1 = @"D:\Test\a.xlsx";
12         string fileName2 = @"D:\Test\c.xlsx";
13 
14         /// <summary>
15         /// 测试方法
16         /// </summary>
17         [Test]
18         public void Test()
19         {
20             bool result = ExcelHelper.CheckExcel(fileName1, fileName2);
21             Assert.AreEqual(true, result);
22         }
23     }
24 }

 

posted on 2013-12-26 13:42  程序猴chengxuhou.com  阅读(856)  评论(0编辑  收藏  举报

导航