Add global usings (#668)

* Use global usings

* Fix namespace declarations for test projects
This commit is contained in:
Patrik Svensson
2021-12-23 16:50:31 +01:00
committed by GitHub
parent eb6a9d8d04
commit 52c1d9122b
514 changed files with 10659 additions and 12441 deletions

View File

@@ -1,20 +1,16 @@
using System;
using System.Diagnostics;
namespace Spectre.Console;
namespace Spectre.Console
public static class ShouldlyExtensions
{
public static class ShouldlyExtensions
[DebuggerStepThrough]
public static T And<T>(this T item, Action<T> action)
{
[DebuggerStepThrough]
public static T And<T>(this T item, Action<T> action)
if (action == null)
{
if (action == null)
{
throw new ArgumentNullException(nameof(action));
}
action(item);
return item;
throw new ArgumentNullException(nameof(action));
}
action(item);
return item;
}
}
}