Beispiel #1
0
 [Test] public void StoryTestIsExecuted() {
     var service = new Service.Service();
     service.AddNamespace("fitlibrary");
     service.ApplicationUnderTest.AddAssembly("fit.dll");
     RunTest(service, "<table><tr><td>do</td></tr></table><table><tr><td>do</td></tr></table>");
     Assert.AreEqual("<table><tr><td><span class=\"fit_interpreter\">do</span></td></tr></table><table><tr><td><span class=\"fit_interpreter\">do</span></td></tr></table>", resultTables);
 }
        [Test] public void StoryTestIsExecuted()
        {
            var service = new Service.Service();

            service.AddNamespace("fitlibrary");
            service.ApplicationUnderTest.AddAssembly("fit.dll");
            RunTest(service, "<table><tr><td>do</td></tr></table><table><tr><td>do</td></tr></table>");
            Assert.AreEqual("<table><tr><td><span class=\"fit_interpreter\">do</span></td></tr></table><table><tr><td><span class=\"fit_interpreter\">do</span></td></tr></table>", resultTables);
        }
Beispiel #3
0
 public void StoryTestIsExecuted()
 {
     var service = new Service.Service();
     service.AddNamespace("fitlibrary");
     service.ApplicationUnderTest.AddAssembly("fit.dll");
     const string tables = "<table><tr><td>do</td></tr></table><table><tr><td>do</td></tr></table>";
     RunTest(service, tables);
     Assert.AreEqual(tables, resultTables);
 }
        [Test] public void StoryTestIsExecuted()
        {
            var service = new Service.Service();

            service.AddNamespace("fitlibrary");
            service.ApplicationUnderTest.AddAssembly(System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "fit.dll"));
            RunTest(service, "<table><tr><td>do</td></tr></table><table><tr><td>do</td></tr></table>");
            Assert.AreEqual("<table><tr><td><span class=\"fit_interpreter\">do</span></td></tr></table><table><tr><td><span class=\"fit_interpreter\">do</span></td></tr></table>", resultTables);
        }
 public void StoryTestIsExecuted()
 {
     var service = new Service.Service();
     service.AddNamespace("fitlibrary");
     service.ApplicationUnderTest.AddAssembly("fit.dll");
     const string tables = "<table><tr><td>do</td></tr></table><table><tr><td>do</td></tr></table>";
     var socket = new TestSocket();
     socket.PutByteString("0000000070");
     socket.PutByteString(tables);
     socket.PutByteString("0000000000");
     var server = new SocketServer(new FitSocket(socket, new NullReporter()), service, new NullReporter(), false);
     server.ProcessTestDocuments(new StoryTestStringWriter(service).ForTables(s => resultTables += s));
     Assert.AreEqual(tables, resultTables);
 }
Beispiel #6
0
        [Test] public void StoryTestIsExecuted()
        {
            var service = new Service.Service();

            service.AddNamespace("fitlibrary");
            service.ApplicationUnderTest.AddAssembly("fit.dll");
            const string tables = "<table><tr><td>do</td></tr></table><table><tr><td>do</td></tr></table>";
            var          socket = new TestSocket();

            socket.PutByteString("0000000070");
            socket.PutByteString(tables);
            socket.PutByteString("0000000000");
            var server = new SocketServer(new FitSocket(socket, new NullReporter()), service, new NullReporter(), false);

            server.ProcessTestDocuments(WriteResult);
            Assert.AreEqual(tables, resultTables);
        }