Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        public void SetUp()
        {
            _state = new MondState();
            var ops = MondModuleBinder.Bind <MyOperators>(_state);

            foreach (var pair in ops.Object)
            {
                this._state[pair.Key] = pair.Value;
            }
        }
Esempio n. 3
0
 public void Duplicates()
 {
     Assert.DoesNotThrow(() => MondModuleBinder.Bind <TestDuplicate>(_state));
 }
Esempio n. 4
0
 public void SetUp()
 {
     _state         = new MondState();
     _state["Test"] = MondModuleBinder.Bind <Test>(_state);
 }
Esempio n. 5
0
        public IEnumerable <KeyValuePair <string, MondValue> > GetDefinitions(MondState state)
        {
            var httpModule = MondModuleBinder.Bind(typeof(HttpModule), state);

            yield return(new KeyValuePair <string, MondValue>("Http", httpModule));
        }
Esempio n. 6
0
        public IEnumerable <KeyValuePair <string, MondValue> > GetDefinitions(MondState state)
        {
            var randomModule = MondModuleBinder.Bind(typeof(BetterRandomModule), state);

            yield return(new KeyValuePair <string, MondValue>("Random", randomModule));
        }
Esempio n. 7
0
 public void HiddenOverloads()
 {
     Assert.Throws <MondBindingException>(() => MondModuleBinder.Bind <HiddenOverloadsModule>(_state));
 }
Esempio n. 8
0
 public void SetUp()
 {
     _state       = new MondState();
     _state["Ov"] = MondModuleBinder.Bind <OverloadedModule>(_state);
 }