BadScript 2
Loading...
Searching...
No Matches
BadNUnitTestCase.cs
Go to the documentation of this file.
2
4
8public class BadNUnitTestCase
9{
16 public BadNUnitTestCase(BadFunction function, string? testName, bool allowCompile)
17 {
18 Function = function;
19 TestName = testName ?? Function.ToString();
20 AllowCompile = allowCompile;
21 }
22
26 public string TestName { get; }
27
31 public BadFunction? Function { get; }
32
36 public bool AllowCompile { get; }
37
39 public override string ToString()
40 {
41 return TestName;
42 }
43}
Represents a BadScript NUnit Test Case.
BadFunction? Function
The Function to Test.
bool AllowCompile
True if the Function should be tested in compiled and uncompiled mode.
BadNUnitTestCase(BadFunction function, string? testName, bool allowCompile)
Constructs a new BadNUnitTestCase.
override string ToString()
Returns a String Representation of this Object.
Definition BadObject.cs:210
Implements a function that can be called from the script.
Contains NUnit Extensions and APIs for the BadScript2 Runtime.
Definition BadNUnitApi.cs:7
Contains Runtime Function Objects.