diff --git a/src/ApprovalTests/Reporters/TestFrameworks/NUnit3Reporter.cs b/src/ApprovalTests/Reporters/TestFrameworks/NUnit3Reporter.cs index ea31a9c9..7312d028 100644 --- a/src/ApprovalTests/Reporters/TestFrameworks/NUnit3Reporter.cs +++ b/src/ApprovalTests/Reporters/TestFrameworks/NUnit3Reporter.cs @@ -1,11 +1,10 @@ namespace ApprovalTests.Reporters.TestFrameworks; -public class NUnit3Reporter : AssertReporter +public class NUnit3Reporter() : + AssertReporter( + "NUnit.Framework.Assert, nunit.framework", + "AreEqual", + NUnitStackTraceParser.Attribute) { public readonly static NUnit3Reporter INSTANCE = new(); - - public NUnit3Reporter() - : base("NUnit.Framework.Assert, nunit.framework", "AreEqual", NUnitStackTraceParser.Attribute) - { - } } \ No newline at end of file diff --git a/src/ApprovalTests/Reporters/TestFrameworks/NUnit4Reporter.cs b/src/ApprovalTests/Reporters/TestFrameworks/NUnit4Reporter.cs index f4d8cf48..b04092d3 100644 --- a/src/ApprovalTests/Reporters/TestFrameworks/NUnit4Reporter.cs +++ b/src/ApprovalTests/Reporters/TestFrameworks/NUnit4Reporter.cs @@ -1,6 +1,10 @@ namespace ApprovalTests.Reporters.TestFrameworks; -public class NUnit4Reporter : AssertReporter +public class NUnit4Reporter() : + AssertReporter( + "NUnit.Framework.Legacy.ClassicAssert, nunit.framework.legacy", + "AreEqual", + NUnitStackTraceParser.Attribute) { public readonly static NUnit4Reporter INSTANCE = new(); static readonly Lazy isNUnit4 = new(IsisNUnit4); @@ -19,9 +23,4 @@ static bool IsisNUnit4() public override bool IsWorkingInThisEnvironment(string forFile) => base.IsWorkingInThisEnvironment(forFile) && isNUnit4.Value; - - public NUnit4Reporter() - : base("NUnit.Framework.Legacy.ClassicAssert, nunit.framework.legacy", "AreEqual", NUnitStackTraceParser.Attribute) - { - } } \ No newline at end of file