mirror of
https://github.com/spectreconsole/spectre.console.git
synced 2025-12-29 09:18:05 +01:00
Move Spectre.Console.Cli to it's own package
This commit is contained in:
committed by
Patrik Svensson
parent
b600832e00
commit
36ca22ffac
16
src/Spectre.Console.Testing/Extensions/ShouldlyExtensions.cs
Normal file
16
src/Spectre.Console.Testing/Extensions/ShouldlyExtensions.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user