public IEnumerable <KeyValuePair <string, MondValue> > GetDefinitions(MondState state) { var module = MondModuleBinder.Bind(typeof(DateTimeModule), state); MondClassBinder.Bind <DateTimeClass>(state); yield return(new KeyValuePair <string, MondValue>("DateTime", module)); }
public void SetUp() { _state = new MondState(); var ops = MondModuleBinder.Bind <MyOperators>(_state); foreach (var pair in ops.Object) { this._state[pair.Key] = pair.Value; } }
public void Duplicates() { Assert.DoesNotThrow(() => MondModuleBinder.Bind <TestDuplicate>(_state)); }
public void SetUp() { _state = new MondState(); _state["Test"] = MondModuleBinder.Bind <Test>(_state); }
public IEnumerable <KeyValuePair <string, MondValue> > GetDefinitions(MondState state) { var httpModule = MondModuleBinder.Bind(typeof(HttpModule), state); yield return(new KeyValuePair <string, MondValue>("Http", httpModule)); }
public IEnumerable <KeyValuePair <string, MondValue> > GetDefinitions(MondState state) { var randomModule = MondModuleBinder.Bind(typeof(BetterRandomModule), state); yield return(new KeyValuePair <string, MondValue>("Random", randomModule)); }
public void HiddenOverloads() { Assert.Throws <MondBindingException>(() => MondModuleBinder.Bind <HiddenOverloadsModule>(_state)); }
public void SetUp() { _state = new MondState(); _state["Ov"] = MondModuleBinder.Bind <OverloadedModule>(_state); }