19 private readonly List<BadNUnitTestCase>
m_Cases;
29 private readonly List<BadFunction>
m_Setup;
51 List<BadNUnitTestCase> cases,
52 List<BadFunction> setup,
53 List<BadFunction> teardown,
67 private static void Run(IEnumerable<BadObject> enumerable)
116 for (
int i =
m_Setup.Count - 1; i >= 0; i--)
135 for (
int i =
m_Teardown.Count - 1; i >= 0; i--)
155 TestContext.WriteLine($
"Running test '{testCase.TestName}'");
Exposes the BadScript Runtime Functionality to Consumers.
BadExecutionContext CreateContext(string workingDirectory)
Creates a new Context with the configured Options.
Implements a Runnable that can return a value.
Implements a Task Object.
The BadScript Task Runner.
void RunStep()
Runs a single step of the Task Runner.
void AddTask(BadTask task, bool runImmediately=false)
Adds a Task to the Task Runner.
static readonly BadTaskRunner Instance
The Task Runner Instance.
bool IsIdle
Is true if there are no tasks to run.
Represents a BadScript NUnit Test Case.
BadFunction? Function
The Function to Test.
string TestName
The Test Name.
Implements a BadScript NUnit Test Context.
readonly List< BadNUnitTestCase > m_Cases
The Test Cases.
void Setup()
Runs all Setup Functions.
void Run(BadNUnitTestCase test)
Runs a Test Case.
BadUnitTestContext(string workingDir, List< BadNUnitTestCase > cases, List< BadFunction > setup, List< BadFunction > teardown, BadRuntime runtime)
Constructs a new BadUnitTestContext.
IEnumerable< BadObject > RunTeardown()
Runs all Teardown Functions.
static void Run(IEnumerable< BadObject > enumerable)
Runs an enumeration.
readonly string m_WorkingDir
The Working Directory.
readonly List< BadFunction > m_Teardown
The Teardown Functions.
BadNUnitTestCase[] GetTestCases()
Returns all Test Cases.
IEnumerable< BadObject > RunTestCase(BadNUnitTestCase testCase)
Runs a Testcase.
void Teardown()
Runs all Teardown Functions.
readonly List< BadFunction > m_Setup
The Setup Functions.
IEnumerable< BadObject > RunSetup()
Runs all Setup Functions.
readonly BadRuntime m_Runtime
The Runtime.
The Execution Context. Every execution of a script needs a context the script is running in....
The Base Class for all BadScript Objects.
static readonly BadObject Null
The Null Value for the BadScript Language.
Implements a function that can be called from the script.
IEnumerable< BadObject > Invoke(BadObject[] args, BadExecutionContext caller)
Invokes the function with the specified arguments.
Contains task/async Extensions and Integrations for the BadScript2 Runtime.
Contains NUnit Extensions and APIs for the BadScript2 Runtime.
Contains the Error Objects for the BadScript2 Language.
Contains Runtime Function Objects.
Contains the Runtime Objects.
Contains the Runtime Implementation.