mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-07-06 12:38:15 +08:00
Add global usings (#668)
* Use global usings * Fix namespace declarations for test projects
This commit is contained in:
@ -1,25 +1,10 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
using Spectre.Verify.Extensions;
|
||||
using VerifyTests;
|
||||
namespace Spectre.Console.Tests;
|
||||
|
||||
namespace Spectre.Console.Tests
|
||||
public static class VerifyConfiguration
|
||||
{
|
||||
public static class VerifyConfiguration
|
||||
[ModuleInitializer]
|
||||
public static void Init()
|
||||
{
|
||||
[ModuleInitializer]
|
||||
public static void Init()
|
||||
{
|
||||
VerifierSettings.DerivePathInfo(Expectations.Initialize);
|
||||
}
|
||||
VerifierSettings.DerivePathInfo(Expectations.Initialize);
|
||||
}
|
||||
}
|
||||
|
||||
#if !NET5_0_OR_GREATER
|
||||
namespace System.Runtime.CompilerServices
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Method, Inherited = false)]
|
||||
public sealed class ModuleInitializerAttribute : Attribute
|
||||
{
|
||||
}
|
||||
}
|
||||
#endif
|
Reference in New Issue
Block a user