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:Testa.xlsx";
12         string fileName2 = @"D:Testc.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 }
原文地址:https://www.cnblogs.com/minotmin/p/3492262.html