Tag: 审批测试

如何在Approvaltests中添加对xunit的Theory属性的支持

当我尝试使用[Theory]属性修饰的unit testing时使用批准时,它说: System.Exception: System.Exception : Approvals is not set up to use your test framework. It currently supports [NUnit, MsTest, MbUnit, xUnit.net] To add one use ApprovalTests.StackTraceParsers.StackTraceParser.AddParser() method to add implementation of ApprovalTests.StackTraceParsers.IStackTraceParser with support for your testing framework. To learn how to implement one see http://blog.approvaltests.com/2012/01/creating-namers.html at ApprovalTests.StackTraceParsers.StackTraceParser.Parse(StackTrace stackTrace) at ApprovalTests.Namers.UnitTestFrameworkNamer..ctor() at ApprovalTests.Approvals.GetDefaultNamer() at […]