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 }

 

你可能感兴趣的:(framework)