diff --git a/src/Cadru.UnitTest.Framework/AssertExtensions.Emptiness.cs b/src/Cadru.UnitTest.Framework/AssertExtensions.Emptiness.cs
index 7c31dde4..b4415cc5 100644
--- a/src/Cadru.UnitTest.Framework/AssertExtensions.Emptiness.cs
+++ b/src/Cadru.UnitTest.Framework/AssertExtensions.Emptiness.cs
@@ -18,10 +18,8 @@ public static partial class AssertExtensions
///
/// The instance to extend.
/// The value to be tested.
- public static void IsEmpty(this Assert assert, string? value)
- {
- assert.IsEmpty(value, Strings.IsEmptyStringFailMsg);
- }
+ [Obsolete("Use StringAssert.That.IsEmpty", error: true)]
+ public static void IsEmpty(this Assert assert, string? value) => StringAssert.That.IsEmpty(value);
///
/// Asserts that a string is empty.
@@ -31,10 +29,8 @@ public static void IsEmpty(this Assert assert, string? value)
///
/// A message to display. This message can be seen in the unit test results.
///
- public static void IsEmpty(this Assert assert, string? value, string message)
- {
- assert.IsEmpty(value, message, value?.Length!);
- }
+ [Obsolete("Use StringAssert.That.IsEmpty", error: true)]
+ public static void IsEmpty(this Assert assert, string? value, string message) => StringAssert.That.IsEmpty(value, message);
///
/// Asserts that a string is empty.
@@ -47,28 +43,16 @@ public static void IsEmpty(this Assert assert, string? value, string message)
///
/// An array of parameters to use when formatting .
///
- public static void IsEmpty(this Assert assert, string? value, string message, params object[] parameters)
- {
- if (value == null)
- {
- Helpers.HandleFail("Assert.IsEmpty", Strings.IsEmptyStringFailOnNullMsg);
- }
-
- if (value!.Length != 0)
- {
- Helpers.HandleFail("Assert.IsEmpty", message, parameters);
- }
- }
+ [Obsolete("Use StringAssert.That.IsEmpty", error: true)]
+ public static void IsEmpty(this Assert assert, string? value, string message, params object?[] parameters) => StringAssert.That.IsEmpty(value, message, parameters);
///
/// Asserts that a string is not empty.
///
/// The instance to extend.
/// The value to be tested.
- public static void IsNotEmpty(this Assert assert, string? value)
- {
- assert.IsNotEmpty(value, Strings.IsNotEmptyStringFailMsg);
- }
+ [Obsolete("Use StringAssert.That.IsNotEmpty", error: true)]
+ public static void IsNotEmpty(this Assert assert, string? value) => StringAssert.That.IsNotEmpty(value);
///
/// Asserts that a string is not empty.
@@ -78,10 +62,8 @@ public static void IsNotEmpty(this Assert assert, string? value)
///
/// A message to display. This message can be seen in the unit test results.
///
- public static void IsNotEmpty(this Assert assert, string? value, string message)
- {
- assert.IsNotEmpty(value, message, Array.Empty