Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Verify.Expecto/Verifier_Combination.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()!;
Expand Down
21 changes: 21 additions & 0 deletions src/Verify.Fixie.Tests/CombinationTests.WithHeader.verified.txt
Original file line number Diff line number Diff line change
@@ -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
}
11 changes: 11 additions & 0 deletions src/Verify.Fixie.Tests/CombinationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
Expand Down
2 changes: 1 addition & 1 deletion src/Verify.Fixie/Verifier_Combination.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
21 changes: 21 additions & 0 deletions src/Verify.MSTest.Tests/CombinationTests.WithHeader.verified.txt
Original file line number Diff line number Diff line change
@@ -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
}
12 changes: 12 additions & 0 deletions src/Verify.MSTest.Tests/CombinationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Verify.MSTest/Verifier_Combination.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/Verify.MSTest/VerifyBase_Combination.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
21 changes: 21 additions & 0 deletions src/Verify.NUnit.Tests/CombinationTests.WithHeader.verified.txt
Original file line number Diff line number Diff line change
@@ -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
}
12 changes: 12 additions & 0 deletions src/Verify.NUnit.Tests/CombinationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
21 changes: 21 additions & 0 deletions src/Verify.TUnit.Tests/CombinationTests.WithHeader.verified.txt
Original file line number Diff line number Diff line change
@@ -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
}
12 changes: 12 additions & 0 deletions src/Verify.TUnit.Tests/CombinationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Verify.TUnit/Verifier_Combination.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
21 changes: 21 additions & 0 deletions src/Verify.Xunit.Tests/CombinationTests.WithHeader.verified.txt
Original file line number Diff line number Diff line change
@@ -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
}
12 changes: 12 additions & 0 deletions src/Verify.Xunit.Tests/CombinationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
21 changes: 21 additions & 0 deletions src/Verify.XunitV3.Tests/CombinationTests.WithHeader.verified.txt
Original file line number Diff line number Diff line change
@@ -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
}
12 changes: 12 additions & 0 deletions src/Verify.XunitV3.Tests/CombinationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Verify.XunitV3/Verifier_Combination.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/Verify.XunitV3/VerifyBase_Combination.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}