14[BadInteropApi(
"Assert")]
23 [BadMethod(
"Throws",
"Asserts that the given function throws a BadRuntimeException")]
26 [BadParameter(description:
"The Function that is expected to throw")]
28 [BadParameter(description:
"The Message")]
49 [BadMethod(
"AreEqual",
"Asserts that the given objects are equal")]
51 [BadParameter(description:
"The Expected Value")]
53 [BadParameter(description:
"The Actual Value")]
55 [BadParameter(description:
"The Message")]
58 Assert.That(actual, Is.EqualTo(expected), message);
67 [BadMethod(
"AreNotEqual",
"Asserts that the given objects are not equal")]
69 [BadParameter(description:
"The Expected Value")]
71 [BadParameter(description:
"The Actual Value")]
73 [BadParameter(description:
"The Message")]
76 Assert.That(actual, Is.Not.EqualTo(expected), message);
85 [BadMethod(
"AreSame",
"Asserts that the given objects are the same")]
87 [BadParameter(description:
"The Expected Value")]
89 [BadParameter(description:
"The Actual Value")]
91 [BadParameter(description:
"The Message")]
94 Assert.That(actual, Is.SameAs(expected), message);
103 [BadMethod(
"AreNotSame",
"Asserts that the given objects are not the same")]
105 [BadParameter(description:
"The Expected Value")]
107 [BadParameter(description:
"The Actual Value")]
109 [BadParameter(description:
"The Message")]
112 Assert.That(actual, Is.Not.SameAs(expected), message);
120 [BadMethod(
"IsTrue",
"Asserts that the given condition is true")]
121 private static void Assert_IsTrue([BadParameter(description:
"The Condition to check")]
BadObject? condition, [BadParameter(description:
"The Message")] string message)
138 [BadMethod(
"IsFalse",
"Asserts that the given condition is false")]
139 private static void Assert_IsFalse([BadParameter(description:
"The Condition to check")]
BadObject? condition, [BadParameter(description:
"The Message")] string message)
149 [BadMethod(
"Fail",
"Fails the test with the given message")]
150 private static void Assert_Fail([BadParameter(description:
"The Message")] string message)
152 Assert.Fail(message);
159 [BadMethod(
"Inconclusive",
"Marks the test as inconclusive with the given message")]
162 Assert.Inconclusive(message);
169 [BadMethod(
"Ignore",
"Ignore the test with the given message")]
170 private static void Assert_Ignore([BadParameter(description:
"The Message")] string message)
172 Assert.Ignore(message);
181 [BadMethod(
"IsNull",
"Asserts that the given object is null")]
182 private static void Assert_IsNull([BadParameter(description:
"The Object to check")]
BadObject? obj, [BadParameter(description:
"The Message")] string message)
184 Assert.That(obj, Is.Null, message);
192 [BadMethod(
"IsNotNull",
"Asserts that the given object is not null")]
193 private static void Assert_IsNotNull([BadParameter(description:
"The Object to check")]
BadObject? obj, [BadParameter(description:
"The Message")] string message)
195 Assert.That(obj, Is.Not.Null, message);
204 [BadMethod(
"Greater",
"Asserts that the given object is greater than the other object")]
206 [BadParameter(description:
"Actual")] decimal a,
207 [BadParameter(description:
"Expected")]
209 [BadParameter(description:
"The Message")]
212 Assert.That(a, Is.GreaterThan(b), message);
221 [BadMethod(
"GreaterOrEqual",
"Asserts that the given object is greater or equal the other object")]
223 [BadParameter(description:
"Actual")] decimal a,
224 [BadParameter(description:
"Expected")]
226 [BadParameter(description:
"The Message")]
229 Assert.That(a, Is.GreaterThanOrEqualTo(b), message);
238 [BadMethod(
"Less",
"Asserts that the given object is less than the other object")]
240 [BadParameter(description:
"Actual")] decimal a,
241 [BadParameter(description:
"Expected")]
243 [BadParameter(description:
"The Message")]
246 Assert.That(a, Is.LessThan(b), message);
255 [BadMethod(
"LessOrEqual",
"Asserts that the given object is less or equal the other object")]
257 [BadParameter(description:
"Actual")] decimal a,
258 [BadParameter(description:
"Expected")]
260 [BadParameter(description:
"The Message")]
263 Assert.That(a, Is.LessThanOrEqualTo(b), message);
272 [BadMethod(
"Contains",
"Asserts that the given collection contains the given object")]
274 [BadParameter(description:
"The Collection to Check")]
276 [BadParameter(description:
"The Object to Check")]
278 [BadParameter(description:
"The Message")]
281 Assert.That(collection.InnerArray, Contains.Value(obj!), message);
290 [BadMethod(
"Positive",
"Asserts that the given object is positive")]
291 private static void Assert_Positive([BadParameter(description:
"The Object to Check")] decimal d, [BadParameter(description:
"The Message")] string message)
293 Assert.That(d, Is.Positive);
301 [BadMethod(
"Negative",
"Asserts that the given object is negative")]
302 private static void Assert_Negative([BadParameter(description:
"The Object to Check")] decimal d, [BadParameter(description:
"The Message")] string message)
304 Assert.That(d, Is.Negative);
312 [BadMethod(
"Zero",
"Asserts that the given object is zero")]
313 private static void Assert_Zero([BadParameter(description:
"The Object to Check")] decimal d, [BadParameter(description:
"The Message")] string message)
315 Assert.That(d, Is.Zero);
323 [BadMethod(
"NotZero",
"Asserts that the given object is not zero")]
324 private static void Assert_NotZero([BadParameter(description:
"The Object to Check")] decimal d, [BadParameter(description:
"The Message")] string message)
326 Assert.That(d, Is.Not.Zero);
333 [BadMethod(
"Pass",
"Passes the test with the given message")]
334 private static void Assert_Pass([BadParameter(description:
"The Message")] string message)
336 Assert.Pass(message);
344 [BadMethod(
"IsEmpty",
"Asserts that the given collection is empty")]
345 private static void Assert_IsEmpty([BadParameter(description:
"The Collection to Check")]
BadArray collection, [BadParameter(description:
"The Message")] string message)
347 Assert.That(collection.InnerArray, Is.Empty, message);
Implements the "NUnit" Api.
static void Assert_NotZero([BadParameter(description:"The Object to Check")] decimal d, [BadParameter(description:"The Message")] string message)
Asserts that the given object is not zero.
static void Assert_AreNotEqual([BadParameter(description:"The Expected Value")] BadObject? expected, [BadParameter(description:"The Actual Value")] BadObject? actual, [BadParameter(description:"The Message")] string message)
Asserts that the given objects are not equal.
static void Assert_AreNotSame([BadParameter(description:"The Expected Value")] BadObject? expected, [BadParameter(description:"The Actual Value")] BadObject? actual, [BadParameter(description:"The Message")] string message)
Asserts that the given objects are not the same.
static void Assert_Negative([BadParameter(description:"The Object to Check")] decimal d, [BadParameter(description:"The Message")] string message)
Asserts that the given object is negative.
static void Assert_Pass([BadParameter(description:"The Message")] string message)
Passes the test with the given message.
static void Assert_Greater([BadParameter(description:"Actual")] decimal a, [BadParameter(description:"Expected")] decimal b, [BadParameter(description:"The Message")] string message)
Asserts that the given object is greater than the other object.
static void Assert_Positive([BadParameter(description:"The Object to Check")] decimal d, [BadParameter(description:"The Message")] string message)
Asserts that the given object is positive.
static void Assert_AreEqual([BadParameter(description:"The Expected Value")] BadObject? expected, [BadParameter(description:"The Actual Value")] BadObject? actual, [BadParameter(description:"The Message")] string message)
Asserts that the given objects are equal.
static void Assert_IsEmpty([BadParameter(description:"The Collection to Check")] BadArray collection, [BadParameter(description:"The Message")] string message)
Asserts that the given collection is empty.
static void Assert_IsTrue([BadParameter(description:"The Condition to check")] BadObject? condition, [BadParameter(description:"The Message")] string message)
Asserts that the given condition is true.
static void Assert_AreSame([BadParameter(description:"The Expected Value")] BadObject? expected, [BadParameter(description:"The Actual Value")] BadObject? actual, [BadParameter(description:"The Message")] string message)
Asserts that the given objects are the same.
static void Assert_IsNull([BadParameter(description:"The Object to check")] BadObject? obj, [BadParameter(description:"The Message")] string message)
Asserts that the given object is null.
static void Assert_IsNotNull([BadParameter(description:"The Object to check")] BadObject? obj, [BadParameter(description:"The Message")] string message)
Asserts that the given object is not null.
static void Assert_Throws(BadExecutionContext ctx, [BadParameter(description:"The Function that is expected to throw")] BadFunction func, [BadParameter(description:"The Message")] string message)
Asserts that the given function throws a BadRuntimeException.
static void Assert_Inconclusive([BadParameter(description:"The Message")] string message)
Marks the test as inconclusive with the given message.
static void Assert_GreaterOrEqual([BadParameter(description:"Actual")] decimal a, [BadParameter(description:"Expected")] decimal b, [BadParameter(description:"The Message")] string message)
Asserts that the given object is greater or equal the other object.
static void Assert_Contains([BadParameter(description:"The Collection to Check")] BadArray collection, [BadParameter(description:"The Object to Check")] BadObject? obj, [BadParameter(description:"The Message")] string message)
Asserts that the given collection contains the given object.
static void Assert_Less([BadParameter(description:"Actual")] decimal a, [BadParameter(description:"Expected")] decimal b, [BadParameter(description:"The Message")] string message)
Asserts that the given object is less than the other object.
static void Assert_IsFalse([BadParameter(description:"The Condition to check")] BadObject? condition, [BadParameter(description:"The Message")] string message)
Asserts that the given condition is false.
static void Assert_Ignore([BadParameter(description:"The Message")] string message)
Ignore the test with the given message.
static void Assert_Zero([BadParameter(description:"The Object to Check")] decimal d, [BadParameter(description:"The Message")] string message)
Asserts that the given object is zero.
static void Assert_LessOrEqual([BadParameter(description:"Actual")] decimal a, [BadParameter(description:"Expected")] decimal b, [BadParameter(description:"The Message")] string message)
Asserts that the given object is less or equal the other object.
static void Assert_Fail([BadParameter(description:"The Message")] string message)
Fails the test with the given message.
The Execution Context. Every execution of a script needs a context the script is running in....
Gets thrown by the runtime.
Implements a Dynamic List/Array for the BadScript Language.
The Base Class for all BadScript Objects.
Implements a function that can be called from the script.
Implements the Interface for Native Boolean.
new bool Value
The Boolean Value.
Contains NUnit Extensions and APIs for the BadScript2 Runtime.
Contains the Error Objects for the BadScript2 Language.
Contains Runtime Function Objects.
Contains the Native Runtime Objects.
Contains the Runtime Objects.
Contains the Runtime Implementation.