approval-tests

How to add support for xunit's Theory attribute in Approvaltests

心不动则不痛 提交于 2019-12-10 04:25:02
问题 When I try to use approvals with my unit test decorated with [Theory] attribute it says: 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

How to add support for xunit's Theory attribute in Approvaltests

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-05 07:56:35
When I try to use approvals with my unit test decorated with [Theory] attribute it says: 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