Skip to content

Commit

Permalink
Reduced unnecessary snapshots (#7465)
Browse files Browse the repository at this point in the history
  • Loading branch information
glen-84 authored Sep 18, 2024
1 parent f35fc37 commit 92c99df
Show file tree
Hide file tree
Showing 1,922 changed files with 305 additions and 70,434 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ public static Snapshot AddResult(
string.IsNullOrEmpty(name)
? "Result:"
: $"{name} Result:");
snapshot.SetPostFix(TestEnvironment.TargetFramework);

if (result.ContextData.TryGetValue("query", out var queryResult) &&
queryResult is string queryString &&
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public async Task Create_NullableBooleanNotEqual_Expression()

// assert
await Snapshot
.Create()
.Create(postFix: TestEnvironment.TargetFramework)
.AddResult(res1, "true")
.AddResult(res2, "false")
.AddResult(res3, "null")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ public async Task Create_ShortIn_Expression()

// assert
await Snapshot
.Create()
.Create(postFix: TestEnvironment.TargetFramework)
.AddResult(res1, "12and13")
.AddResult(res2, "13and14")
.AddResult(res3, "nullAnd14")
Expand Down Expand Up @@ -435,7 +435,7 @@ public async Task Create_ShortNotIn_Expression()

// assert
await Snapshot
.Create()
.Create(postFix: TestEnvironment.TargetFramework)
.AddResult(res1, "12and13")
.AddResult(res2, "13and14")
.AddResult(res3, "nullAnd14")
Expand Down Expand Up @@ -497,7 +497,7 @@ public async Task Create_ShortNullableNotEqual_Expression()

// assert
await Snapshot
.Create()
.Create(postFix: TestEnvironment.TargetFramework)
.AddResult(res1, "12")
.AddResult(res2, "13")
.AddResult(res3, "null")
Expand Down Expand Up @@ -824,7 +824,7 @@ public async Task Create_ShortNullableIn_Expression()

// assert
await Snapshot
.Create()
.Create(postFix: TestEnvironment.TargetFramework)
.AddResult(res1, "12and13")
.AddResult(res2, "13and14")
.AddResult(res3, "13andNull")
Expand Down Expand Up @@ -855,7 +855,7 @@ public async Task Create_ShortNullableNotIn_Expression()

// assert
await Snapshot
.Create()
.Create(postFix: TestEnvironment.TargetFramework)
.AddResult(res1, "12and13")
.AddResult(res2, "13and14")
.AddResult(res3, "13andNull")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public async Task Create_EnumIn_Expression()

// assert
await Snapshot
.Create()
.Create(postFix: TestEnvironment.TargetFramework)
.AddResult(res1, "BarAndFoo")
.AddResult(res2, "FOO")
.AddResult(res3, "nullAndFoo")
Expand Down Expand Up @@ -141,7 +141,7 @@ public async Task Create_EnumNotIn_Expression()

// assert
await Snapshot
.Create()
.Create(postFix: TestEnvironment.TargetFramework)
.AddResult(res1, "BarAndFoo")
.AddResult(res2, "FOO")
.AddResult(res3, "nullAndFoo")
Expand Down Expand Up @@ -204,7 +204,7 @@ public async Task Create_NullableEnumNotEqual_Expression()

// assert
await Snapshot
.Create()
.Create(postFix: TestEnvironment.TargetFramework)
.AddResult(res1, "BAR")
.AddResult(res2, "FOO")
.AddResult(res3, "null")
Expand Down Expand Up @@ -235,7 +235,7 @@ public async Task Create_NullableEnumIn_Expression()

// assert
await Snapshot
.Create()
.Create(postFix: TestEnvironment.TargetFramework)
.AddResult(res1, "BarAndFoo")
.AddResult(res2, "FOO")
.AddResult(res3, "nullAndFoo")
Expand Down Expand Up @@ -266,7 +266,7 @@ public async Task Create_NullableEnumNotIn_Expression()

// assert
await Snapshot
.Create()
.Create(postFix: TestEnvironment.TargetFramework)
.AddResult(res1, "BarAndFoo")
.AddResult(res2, "FOO")
.AddResult(res3, "nullAndFoo")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public async Task Create_StringConcatExpression()

// assert
await Snapshot
.Create()
.Create(postFix: TestEnvironment.TargetFramework)
.AddResult(res1, "Sam_Sampleman")
.AddResult(res2, "NoMatch")
.AddResult(res3, "null")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public async Task Create_ArraySomeObjectStringEqualWithNull_Expression()

// assert
await Snapshot
.Create()
.Create(postFix: TestEnvironment.TargetFramework)
.AddResult(res1, "a")
.AddResult(res2, "d")
.AddResult(res3, "null")
Expand Down Expand Up @@ -131,7 +131,7 @@ public async Task Create_ArrayNoneObjectStringEqual_Expression()

// assert
await Snapshot
.Create()
.Create(postFix: TestEnvironment.TargetFramework)
.AddResult(res1, "a")
.AddResult(res2, "d")
.AddResult(res3, "null")
Expand Down Expand Up @@ -165,7 +165,7 @@ public async Task Create_ArrayAllObjectStringEqual_Expression()

// assert
await Snapshot
.Create()
.Create(postFix: TestEnvironment.TargetFramework)
.AddResult(res1, "a")
.AddResult(res2, "d")
.AddResult(res3, "null")
Expand Down Expand Up @@ -199,7 +199,7 @@ public async Task Create_ArrayAnyObjectStringEqual_Expression()

// assert
await Snapshot
.Create()
.Create(postFix: TestEnvironment.TargetFramework)
.AddResult(res1, "false")
.AddResult(res2, "true")
.AddResult(res3, "null")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public async Task Create_ObjectShortIn_Expression()

// assert
await Snapshot
.Create()
.Create(postFix: TestEnvironment.TargetFramework)
.AddResult(res1, "12and13")
.AddResult(res2, "13and14")
.AddResult(res3, "nullAnd14")
Expand Down Expand Up @@ -248,7 +248,7 @@ public async Task Create_ObjectNullableShortIn_Expression()

// assert
await Snapshot
.Create()
.Create(postFix: TestEnvironment.TargetFramework)
.AddResult(res1, "12and13")
.AddResult(res2, "13and14")
.AddResult(res3, "13andNull")
Expand Down Expand Up @@ -388,7 +388,7 @@ public async Task Create_ObjectEnumIn_Expression()

// assert
await Snapshot
.Create()
.Create(postFix: TestEnvironment.TargetFramework)
.AddResult(res1, "BarAndFoo")
.AddResult(res2, "FOO")
.AddResult(res3, "nullAndFoo")
Expand Down Expand Up @@ -463,7 +463,7 @@ public async Task Create_ObjectNullableEnumIn_Expression()

// assert
await Snapshot
.Create()
.Create(postFix: TestEnvironment.TargetFramework)
.AddResult(res1, "BarAndFoo")
.AddResult(res2, "FOO")
.AddResult(res3, "nullAndFoo")
Expand Down Expand Up @@ -537,7 +537,7 @@ public async Task Create_ObjectStringIn_Expression()

// assert
await Snapshot
.Create()
.Create(postFix: TestEnvironment.TargetFramework)
.AddResult(res1, "testatestAndtestb")
.AddResult(res2, "testbtestAndNull")
.AddResult(res3, "testatest")
Expand Down Expand Up @@ -577,7 +577,7 @@ public async Task Create_ArrayObjectNestedArraySomeStringEqual_Expression()

// assert
await Snapshot
.Create()
.Create(postFix: TestEnvironment.TargetFramework)
.AddResult(res1, "a")
.AddResult(res2, "b")
.AddResult(res3, "null")
Expand Down Expand Up @@ -614,7 +614,7 @@ public async Task Create_ArrayObjectNestedArrayAnyStringEqual_Expression()

// assert
await Snapshot
.Create()
.Create(postFix: TestEnvironment.TargetFramework)
.AddResult(res1, "false")
.AddResult(res2, "true")
.AddResult(res3, "null")
Expand Down
Loading

0 comments on commit 92c99df

Please sign in to comment.