BadScript 2
Loading...
Searching...
No Matches
BadNUnitApiExtensions.cs
Go to the documentation of this file.
2
6public static class BadNUnitApiExtensions
7{
13 public static BadRuntime UseNUnitApi(this BadRuntime runtime)
14 {
15 return runtime.UseApi(new BadNUnitApi(), true);
16 }
17
25 {
27 api.SetContext(console);
28
29 return runtime
30 .UseApi(api, true)
33 }
34}
Exposes the BadScript Runtime Functionality to Consumers.
Definition BadRuntime.cs:28
BadRuntime UseConsoleLogWriter()
Configures the Runtime to use the default log writer implementation(log to console)
BadRuntime UseApi(BadInteropApi api, bool replace=false)
Adds or Replaces a specified API.
BadRuntime UseConsole(IBadConsole console)
Configures the Runtime to use the specified console implementation.
static BadRuntime UseNUnitApi(this BadRuntime runtime)
Configures the Runtime to use the NUnit API.
static BadRuntime UseNUnitConsole(this BadRuntime runtime, BadUnitTestContextBuilder console)
Configures the Runtime to use the NUnit Console API.
Implements the "NUnit" Api(Console Version)
void SetContext(BadUnitTestContextBuilder console)
Implements a wrapper for the default NUnit console.
Contains NUnit Extensions and APIs for the BadScript2 Runtime.
Definition BadNUnitApi.cs:7