我有一个问题,即使用 ApprovalTests.Net 和 NUnit 运行的所有测试都使用相同的批准文件,该文件的名称源自测试方法名称。
是否可以以某种方式为每个测试用例指定单独的批准文件?
[Test]
[TestCase("test",TestName="Test1")]
[TestCase("test2",TestName="Test2")]
Testing_Method(string param)
{
//somestuff
ObjectApprover.VerifyJson(someObject); // fails for second case
// because it uses the same
// approval file as the first case,
// which is not the same
}