diff --git a/src/Verify.Expecto/Verifier_Combination.cs b/src/Verify.Expecto/Verifier_Combination.cs index ed1b3bd70..0b3672e35 100644 --- a/src/Verify.Expecto/Verifier_Combination.cs +++ b/src/Verify.Expecto/Verifier_Combination.cs @@ -8,7 +8,7 @@ public static Combination Combination( string name, bool? captureExceptions = null, VerifySettings? settings = null, - bool header = false, + bool? header = null, [CallerFilePath] string sourceFile = "") { var assembly = Assembly.GetCallingAssembly()!; diff --git a/src/Verify.Fixie.Tests/CombinationTests.WithHeader.verified.txt b/src/Verify.Fixie.Tests/CombinationTests.WithHeader.verified.txt new file mode 100644 index 000000000..ce57b2f52 --- /dev/null +++ b/src/Verify.Fixie.Tests/CombinationTests.WithHeader.verified.txt @@ -0,0 +1,21 @@ +{ + a, b, c : Result, + A, 1, True : a1True, + A, 1, False: a1False, + A, 2, True : a2True, + A, 2, False: a2False, + A, 3, True : a3True, + A, 3, False: a3False, + b, 1, True : b1True, + b, 1, False: b1False, + b, 2, True : b2True, + b, 2, False: b2False, + b, 3, True : b3True, + b, 3, False: b3False, + C, 1, True : c1True, + C, 1, False: c1False, + C, 2, True : c2True, + C, 2, False: c2False, + C, 3, True : c3True, + C, 3, False: c3False +} \ No newline at end of file diff --git a/src/Verify.Fixie.Tests/CombinationTests.cs b/src/Verify.Fixie.Tests/CombinationTests.cs index 9f59c07b2..f08718442 100644 --- a/src/Verify.Fixie.Tests/CombinationTests.cs +++ b/src/Verify.Fixie.Tests/CombinationTests.cs @@ -73,6 +73,17 @@ public Task MixedLengths() a, b, c); } + public Task WithHeader() + { + string[] a = ["A", "b", "C"]; + int[] b = [1, 2, 3]; + bool[] c = [true, false]; + return Combination(header: true) + .Verify( + (a, b, c) => a.ToLower() + b + c, + a, b, c); + } + public Task WithException() { string[] a = ["A", "b", "C"]; diff --git a/src/Verify.Fixie/Verifier_Combination.cs b/src/Verify.Fixie/Verifier_Combination.cs index dc4dc1638..1aeb76122 100644 --- a/src/Verify.Fixie/Verifier_Combination.cs +++ b/src/Verify.Fixie/Verifier_Combination.cs @@ -6,7 +6,7 @@ public static partial class Verifier public static Combination Combination( bool? captureExceptions = null, VerifySettings? settings = null, - bool header = false, + bool? header = null, [CallerFilePath] string sourceFile = "") => new( captureExceptions, diff --git a/src/Verify.MSTest.Tests/CombinationTests.WithHeader.verified.txt b/src/Verify.MSTest.Tests/CombinationTests.WithHeader.verified.txt new file mode 100644 index 000000000..ce57b2f52 --- /dev/null +++ b/src/Verify.MSTest.Tests/CombinationTests.WithHeader.verified.txt @@ -0,0 +1,21 @@ +{ + a, b, c : Result, + A, 1, True : a1True, + A, 1, False: a1False, + A, 2, True : a2True, + A, 2, False: a2False, + A, 3, True : a3True, + A, 3, False: a3False, + b, 1, True : b1True, + b, 1, False: b1False, + b, 2, True : b2True, + b, 2, False: b2False, + b, 3, True : b3True, + b, 3, False: b3False, + C, 1, True : c1True, + C, 1, False: c1False, + C, 2, True : c2True, + C, 2, False: c2False, + C, 3, True : c3True, + C, 3, False: c3False +} \ No newline at end of file diff --git a/src/Verify.MSTest.Tests/CombinationTests.cs b/src/Verify.MSTest.Tests/CombinationTests.cs index d786a5dbb..e99e53e95 100644 --- a/src/Verify.MSTest.Tests/CombinationTests.cs +++ b/src/Verify.MSTest.Tests/CombinationTests.cs @@ -81,6 +81,18 @@ public Task MixedLengths() a, b, c); } + [TestMethod] + public Task WithHeader() + { + string[] a = ["A", "b", "C"]; + int[] b = [1, 2, 3]; + bool[] c = [true, false]; + return Combination(header: true) + .Verify( + (a, b, c) => a.ToLower() + b + c, + a, b, c); + } + [TestMethod] public Task WithException() { diff --git a/src/Verify.MSTest/Verifier_Combination.cs b/src/Verify.MSTest/Verifier_Combination.cs index 3e680b5a5..d28b0cc9c 100644 --- a/src/Verify.MSTest/Verifier_Combination.cs +++ b/src/Verify.MSTest/Verifier_Combination.cs @@ -6,7 +6,7 @@ public static partial class Verifier public static Combination Combination( bool? captureExceptions = null, VerifySettings? settings = null, - bool header = false, + bool? header = null, [CallerFilePath] string sourceFile = "") => new( captureExceptions, diff --git a/src/Verify.MSTest/VerifyBase_Combination.cs b/src/Verify.MSTest/VerifyBase_Combination.cs index 6b0f46b97..51f1d98c4 100644 --- a/src/Verify.MSTest/VerifyBase_Combination.cs +++ b/src/Verify.MSTest/VerifyBase_Combination.cs @@ -8,7 +8,7 @@ public partial class VerifyBase public Combination Combination( bool? captureExceptions = null, VerifySettings? settings = null, - bool header = false, + bool? header = null, [CallerFilePath] string sourceFile = "") => Verifier.Combination(captureExceptions, settings ?? settings, header, sourceFile); } \ No newline at end of file diff --git a/src/Verify.NUnit.Tests/CombinationTests.WithHeader.verified.txt b/src/Verify.NUnit.Tests/CombinationTests.WithHeader.verified.txt new file mode 100644 index 000000000..ce57b2f52 --- /dev/null +++ b/src/Verify.NUnit.Tests/CombinationTests.WithHeader.verified.txt @@ -0,0 +1,21 @@ +{ + a, b, c : Result, + A, 1, True : a1True, + A, 1, False: a1False, + A, 2, True : a2True, + A, 2, False: a2False, + A, 3, True : a3True, + A, 3, False: a3False, + b, 1, True : b1True, + b, 1, False: b1False, + b, 2, True : b2True, + b, 2, False: b2False, + b, 3, True : b3True, + b, 3, False: b3False, + C, 1, True : c1True, + C, 1, False: c1False, + C, 2, True : c2True, + C, 2, False: c2False, + C, 3, True : c3True, + C, 3, False: c3False +} \ No newline at end of file diff --git a/src/Verify.NUnit.Tests/CombinationTests.cs b/src/Verify.NUnit.Tests/CombinationTests.cs index 3bc4e43e3..81d09ced4 100644 --- a/src/Verify.NUnit.Tests/CombinationTests.cs +++ b/src/Verify.NUnit.Tests/CombinationTests.cs @@ -81,6 +81,18 @@ public Task MixedLengths() a, b, c); } + [Test] + public Task WithHeader() + { + string[] a = ["A", "b", "C"]; + int[] b = [1, 2, 3]; + bool[] c = [true, false]; + return Combination(header: true) + .Verify( + (a, b, c) => a.ToLower() + b + c, + a, b, c); + } + [Test] public Task WithException() { diff --git a/src/Verify.TUnit.Tests/CombinationTests.WithHeader.verified.txt b/src/Verify.TUnit.Tests/CombinationTests.WithHeader.verified.txt new file mode 100644 index 000000000..ce57b2f52 --- /dev/null +++ b/src/Verify.TUnit.Tests/CombinationTests.WithHeader.verified.txt @@ -0,0 +1,21 @@ +{ + a, b, c : Result, + A, 1, True : a1True, + A, 1, False: a1False, + A, 2, True : a2True, + A, 2, False: a2False, + A, 3, True : a3True, + A, 3, False: a3False, + b, 1, True : b1True, + b, 1, False: b1False, + b, 2, True : b2True, + b, 2, False: b2False, + b, 3, True : b3True, + b, 3, False: b3False, + C, 1, True : c1True, + C, 1, False: c1False, + C, 2, True : c2True, + C, 2, False: c2False, + C, 3, True : c3True, + C, 3, False: c3False +} \ No newline at end of file diff --git a/src/Verify.TUnit.Tests/CombinationTests.cs b/src/Verify.TUnit.Tests/CombinationTests.cs index 660f68e74..f17832ea3 100644 --- a/src/Verify.TUnit.Tests/CombinationTests.cs +++ b/src/Verify.TUnit.Tests/CombinationTests.cs @@ -80,6 +80,18 @@ public Task MixedLengths() a, b, c); } + [Test] + public Task WithHeader() + { + string[] a = ["A", "b", "C"]; + int[] b = [1, 2, 3]; + bool[] c = [true, false]; + return Combination(header: true) + .Verify( + (a, b, c) => a.ToLower() + b + c, + a, b, c); + } + [Test] public Task WithException() { diff --git a/src/Verify.TUnit/Verifier_Combination.cs b/src/Verify.TUnit/Verifier_Combination.cs index 4e8cd4209..86d4b7fac 100644 --- a/src/Verify.TUnit/Verifier_Combination.cs +++ b/src/Verify.TUnit/Verifier_Combination.cs @@ -6,7 +6,7 @@ public static partial class Verifier public static Combination Combination( bool? captureExceptions = null, VerifySettings? settings = null, - bool header = false, + bool? header = null, [CallerFilePath] string sourceFile = "") => new( captureExceptions, diff --git a/src/Verify.Xunit.Tests/CombinationTests.WithHeader.verified.txt b/src/Verify.Xunit.Tests/CombinationTests.WithHeader.verified.txt new file mode 100644 index 000000000..ce57b2f52 --- /dev/null +++ b/src/Verify.Xunit.Tests/CombinationTests.WithHeader.verified.txt @@ -0,0 +1,21 @@ +{ + a, b, c : Result, + A, 1, True : a1True, + A, 1, False: a1False, + A, 2, True : a2True, + A, 2, False: a2False, + A, 3, True : a3True, + A, 3, False: a3False, + b, 1, True : b1True, + b, 1, False: b1False, + b, 2, True : b2True, + b, 2, False: b2False, + b, 3, True : b3True, + b, 3, False: b3False, + C, 1, True : c1True, + C, 1, False: c1False, + C, 2, True : c2True, + C, 2, False: c2False, + C, 3, True : c3True, + C, 3, False: c3False +} \ No newline at end of file diff --git a/src/Verify.Xunit.Tests/CombinationTests.cs b/src/Verify.Xunit.Tests/CombinationTests.cs index 1ef1736d0..34d5d32e7 100644 --- a/src/Verify.Xunit.Tests/CombinationTests.cs +++ b/src/Verify.Xunit.Tests/CombinationTests.cs @@ -80,6 +80,18 @@ public Task MixedLengths() a, b, c); } + [Fact] + public Task WithHeader() + { + string[] a = ["A", "b", "C"]; + int[] b = [1, 2, 3]; + bool[] c = [true, false]; + return Combination(header: true) + .Verify( + (a, b, c) => a.ToLower() + b + c, + a, b, c); + } + [Fact] public Task WithException() { diff --git a/src/Verify.XunitV3.Tests/CombinationTests.WithHeader.verified.txt b/src/Verify.XunitV3.Tests/CombinationTests.WithHeader.verified.txt new file mode 100644 index 000000000..ce57b2f52 --- /dev/null +++ b/src/Verify.XunitV3.Tests/CombinationTests.WithHeader.verified.txt @@ -0,0 +1,21 @@ +{ + a, b, c : Result, + A, 1, True : a1True, + A, 1, False: a1False, + A, 2, True : a2True, + A, 2, False: a2False, + A, 3, True : a3True, + A, 3, False: a3False, + b, 1, True : b1True, + b, 1, False: b1False, + b, 2, True : b2True, + b, 2, False: b2False, + b, 3, True : b3True, + b, 3, False: b3False, + C, 1, True : c1True, + C, 1, False: c1False, + C, 2, True : c2True, + C, 2, False: c2False, + C, 3, True : c3True, + C, 3, False: c3False +} \ No newline at end of file diff --git a/src/Verify.XunitV3.Tests/CombinationTests.cs b/src/Verify.XunitV3.Tests/CombinationTests.cs index 1ef1736d0..34d5d32e7 100644 --- a/src/Verify.XunitV3.Tests/CombinationTests.cs +++ b/src/Verify.XunitV3.Tests/CombinationTests.cs @@ -80,6 +80,18 @@ public Task MixedLengths() a, b, c); } + [Fact] + public Task WithHeader() + { + string[] a = ["A", "b", "C"]; + int[] b = [1, 2, 3]; + bool[] c = [true, false]; + return Combination(header: true) + .Verify( + (a, b, c) => a.ToLower() + b + c, + a, b, c); + } + [Fact] public Task WithException() { diff --git a/src/Verify.XunitV3/Verifier_Combination.cs b/src/Verify.XunitV3/Verifier_Combination.cs index baf4b7cd0..e6dd688a3 100644 --- a/src/Verify.XunitV3/Verifier_Combination.cs +++ b/src/Verify.XunitV3/Verifier_Combination.cs @@ -6,7 +6,7 @@ public static partial class Verifier public static Combination Combination( bool? captureExceptions = null, VerifySettings? settings = null, - bool header = false, + bool? header = null, [CallerFilePath] string sourceFile = "") => new( captureExceptions, diff --git a/src/Verify.XunitV3/VerifyBase_Combination.cs b/src/Verify.XunitV3/VerifyBase_Combination.cs index 3bf1e669a..b6ab1db83 100644 --- a/src/Verify.XunitV3/VerifyBase_Combination.cs +++ b/src/Verify.XunitV3/VerifyBase_Combination.cs @@ -6,7 +6,7 @@ public partial class VerifyBase public Combination Combination( bool? captureExceptions = null, VerifySettings? settings = null, - bool header = false, + bool? header = null, [CallerFilePath] string sourceFile = "") => Verifier.Combination(captureExceptions, settings ?? this.settings, header, sourceFile); } \ No newline at end of file