Files
spectre.console/src/Spectre.Console.Testing/Extensions/ShouldlyExtensions.cs
2022-05-15 00:09:52 +02:00

17 lines
322 B
C#

namespace Spectre.Console;
internal static class ShouldlyExtensions
{
[DebuggerStepThrough]
public static T And<T>(this T item, Action<T> action)
{
if (action == null)
{
throw new ArgumentNullException(nameof(action));
}
action(item);
return item;
}
}