NUnit.Framework的使用方法演示

时间:2023-03-09 20:00:38
NUnit.Framework的使用方法演示
 using NUnit.Framework;

 namespace CheckExcel
{
[TestFixture]
public class TestExcelHelper
{
/// <summary>
/// 文件名
/// </summary>
string fileName1 = @"D:\Test\a.xlsx";
string fileName2 = @"D:\Test\c.xlsx"; /// <summary>
/// 测试方法
/// </summary>
[Test]
public void Test()
{
bool result = ExcelHelper.CheckExcel(fileName1, fileName2);
Assert.AreEqual(true, result);
}
}
}