Skip to content

Commit 4440b06

Browse files
committed
fixed test method being inlined
That would cause ApprovalTests to fail finding the NUnit method invoking the test and fail the test with unhelpful error
1 parent cdc8f26 commit 4440b06

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ConventionTests/Conventions/__Run.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22
using System.IO;
33
using System.Linq;
44
using System.Reflection;
5+
using System.Runtime.CompilerServices;
56
using ApprovalTests.Reporters;
67
using NUnit.Framework;
78

89
[assembly: UseReporter(typeof (DiffReporter))]
910

1011
namespace ConventionTests
1112
{
13+
1214
[TestFixture]
1315
public class ConventionTestsRunner
1416
{
@@ -53,6 +55,7 @@ private static bool IsConventionTest(Type type)
5355

5456
[Test]
5557
[TestCaseSource("Conventions")]
58+
[MethodImpl(MethodImplOptions.NoInlining)]
5659
public void Run(IConventionTest test)
5760
{
5861
test.Execute();

0 commit comments

Comments
 (0)