Пример #1
0
        public void Scope_persists_across_execute_calls()
        {
            var host = new DlrHost();

            host.Execute("i = 8");

            var response = host.Execute("i");

            Assert.That(response.ToString(), Is.EqualTo("8"));
        }
Пример #2
0
 public void Execute_with_1_plus_1_should_return_2()
 {
     var host = new DlrHost();
     var response = host.Execute("1+1");
     Assert.That(response.ToString(), Is.EqualTo("2"));
 }
Пример #3
0
 public RequestHandler(TcpListener server, DlrHost dlrHost)
 {
     _server = server;
     _dlrHost = dlrHost;
 }