Ejemplo n.º 1
0
 [Test] public void DoesntExecuteAnExitCommand() {
     var server = new Server {Request = "exit"};
     var runner = new HttpRunner(server);
     runner.Run(null, new TypeDictionary(), null);
     Assert.AreEqual("Bye", server.Reply);
 }
Ejemplo n.º 2
0
 [Test] public void ExecutesAPlainTextTest() {
     var server = new Server {Request = "fitLibrary.DoFixture\n"};
     var runner = new HttpRunner(server);
     runner.Run(null, new TypeDictionary(), null);
     Assert.AreEqual("test@<br /><div><table><tr><td><span class=\"fit_interpreter\">fitLibrary.DoFixture</span></td> </tr></table></div>", server.Reply);
 }