Exemplo 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));
        }
Exemplo 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;
            }
        }
Exemplo n.º 3
0
 public void Duplicates()
 {
     Assert.DoesNotThrow(() => MondModuleBinder.Bind <TestDuplicate>(_state));
 }
Exemplo n.º 4
0
 public void SetUp()
 {
     _state         = new MondState();
     _state["Test"] = MondModuleBinder.Bind <Test>(_state);
 }
Exemplo 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));
        }
Exemplo 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));
        }
Exemplo n.º 7
0
 public void HiddenOverloads()
 {
     Assert.Throws <MondBindingException>(() => MondModuleBinder.Bind <HiddenOverloadsModule>(_state));
 }
Exemplo n.º 8
0
 public void SetUp()
 {
     _state       = new MondState();
     _state["Ov"] = MondModuleBinder.Bind <OverloadedModule>(_state);
 }