Skip to content

Commit 3c1b7a8

Browse files
committed
Remove ShouldNotBeNullOrEmpty
1 parent d833b9e commit 3c1b7a8

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

test/JsonApiDotNetCoreTests/IntegrationTests/Serialization/ETagTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
4343

4444
httpResponse.Headers.ETag.ShouldNotBeNull();
4545
httpResponse.Headers.ETag.IsWeak.Should().BeFalse();
46-
httpResponse.Headers.ETag.Tag.ShouldNotBeNullOrEmpty();
46+
httpResponse.Headers.ETag.Tag.Should().NotBeNullOrEmpty();
4747

4848
responseDocument.Should().BeEmpty();
4949
}
@@ -71,7 +71,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
7171

7272
httpResponse.Headers.ETag.ShouldNotBeNull();
7373
httpResponse.Headers.ETag.IsWeak.Should().BeFalse();
74-
httpResponse.Headers.ETag.Tag.ShouldNotBeNullOrEmpty();
74+
httpResponse.Headers.ETag.Tag.Should().NotBeNullOrEmpty();
7575

7676
responseDocument.Should().NotBeEmpty();
7777
}
@@ -202,7 +202,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
202202

203203
httpResponse2.Headers.ETag.ShouldNotBeNull();
204204
httpResponse2.Headers.ETag.IsWeak.Should().BeFalse();
205-
httpResponse2.Headers.ETag.Tag.ShouldNotBeNullOrEmpty();
205+
httpResponse2.Headers.ETag.Tag.Should().NotBeNullOrEmpty();
206206

207207
responseDocument2.Should().BeEmpty();
208208
}
@@ -232,7 +232,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
232232

233233
httpResponse.Headers.ETag.ShouldNotBeNull();
234234
httpResponse.Headers.ETag.IsWeak.Should().BeFalse();
235-
httpResponse.Headers.ETag.Tag.ShouldNotBeNullOrEmpty();
235+
httpResponse.Headers.ETag.Tag.Should().NotBeNullOrEmpty();
236236

237237
responseDocument.Should().NotBeEmpty();
238238
}

test/TestBuildingBlocks/NullabilityAssertionExtensions.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@ public static T ShouldNotBeNull<T>([SysNotNull] this T? subject)
1616
return subject!;
1717
}
1818

19-
[CustomAssertion]
20-
public static void ShouldNotBeNullOrEmpty([SysNotNull] this string? subject)
21-
{
22-
subject.Should().NotBeNullOrEmpty();
23-
}
24-
2519
[CustomAssertion]
2620
public static TValue? ShouldContainKey<TKey, TValue>([SysNotNull] this IDictionary<TKey, TValue?>? subject, TKey expected)
2721
{

0 commit comments

Comments
 (0)