26 Assert.That(num.CanUnwrap(), Is.
True);
27 Assert.That(table.CanUnwrap(), Is.
False);
28 Assert.That(num.Unwrap(), Is.EqualTo((decimal)10));
42 Version v =
new Version();
44 Assert.That(num.Unwrap<decimal>(), Is.EqualTo(10));
49 Assert.That(table.Unwrap<
BadTable>(), Is.EqualTo(table));
50 Assert.That(nativeTest.Unwrap<Version>(), Is.EqualTo(v));
80 Assert.That(e.
HasProperty(
"GetEnumerator"), Is.True);
97 Version v =
new Version();
The Execution Context. Every execution of a script needs a context the script is running in....
static BadExecutionContext Create(BadInteropExtensionProvider provider)
Creates a new Execution Context with an empty scope.
Gets thrown by the runtime.
Implements an Interop Enumerable Object.
override BadObjectReference GetProperty(string propName, BadScope? caller=null)
Returns a Reference to the Property with the given Name.The Property Reference
override bool HasProperty(string propName, BadScope? caller=null)
Returns true if the object contains a given property or there exists an extension for the current Ins...
override BadClassPrototype GetPrototype()
Implements a simple wrapper for C# IEnumerators to be used in BS2.
void RegisterObject(Type t, string propName, BadObject obj)
Registers the specified extension for the specified type.
void RegisterGlobal(string propName, Func< BadObject, BadObject > func)
Registers the specified extension for all objects.
BadObject[] GetExtensionNames()
Returns all Global Extension names.
Non Generic Interop Function.
Implements a Reflected Object.
override BadClassPrototype GetPrototype()
override BadObjectReference GetProperty(string propName, BadScope? caller=null)
Returns a Reference to the Property with the given Name.The Property Reference
override bool HasProperty(string propName, BadScope? caller=null)
Returns true if the object contains a given property or there exists an extension for the current Ins...
The Base Class for all BadScript Objects.
static readonly BadObject True
The True Value for the BadScript Language.
static readonly BadObject False
The False Value for the BadScript Language.
static readonly BadObject Null
The Null Value for the BadScript Language.
Implements a Table Structure for the BadScript Language.
Implements a function that can be called from the script.
Implements a Native Type.
Implements a Class Prototype for the BadScript Language.
void Unwrap()
Tests the Unwrap Functions of the Runtime.
void GetExtensions()
Tests the Extension Provider Functions.
void Enumerable()
Tests the Enumerable/Enumerator Interop.
void Reflection()
Tests the Reflection Subsystem.
void UnwrapGeneric()
Tests the Generic Unwrap Functions of the Runtime.
Contains the Error Objects for the BadScript2 Language.
Contains the Interop Function Classes for the BadScript2 Language.
Contains the Classes for Reflection Objects.
Contains the Interop Abstractions and Implementations for the BadScript2 Language.
Contains Runtime Function Objects.
Contains the Native Runtime Objects.
Contains Runtime Type Objects.
Contains the Runtime Objects.
Contains the Runtime Implementation.