Inheritance: CellProcessorBase, Copyable
示例#1
0
	    public void Run(IList<string> CommandLineArguments)
		{
			ParseCommandLineArguments(CommandLineArguments);

	        reporter = MakeReporter();

			clientSocket = new FitSocket(new SocketModelImpl(host, port), reporter);
			EstablishConnection();

	        var service = new Service(memory);
	        var writer = new StoryTestStringWriter(service)
	            .ForTables(WriteTables)
	            .ForCounts(WriteCounts);

		    var server = new SocketServer(clientSocket, service, reporter, true);
			server.ProcessTestDocuments(writer);

		    Exit();
		}
示例#2
0
文件: Shell.cs 项目: GibSral/fitsharp
 public string Run(string input) {
     var storyTestText =
         "<style type=\"text/css\">\n" +
         ".pass {background-color: #AAFFAA;}\n" +
         ".fail {background-color: #FFAAAA;}\n" +
         ".error {background-color: #FFFFAA;}\n" +
         ".ignore {background-color: #CCCCCC;}\n" +
         ".fit_stacktrace {font-size: 0.7em;}\n" +
         ".fit_label {font-style: italic; color: #C08080;}\n" +
         ".fit_grey {color: #808080;}\n" +
         ".fit_extension {border: solid 1px grey;}\n" +
         ".fit_table {border: solid 1px grey; border-collapse: collapse; margin: 2px 0px;}\n" +
         "table.fit_table tr td {border: solid 1px grey; padding: 2px 2px 2px 2px;}\n" +
         "</style>\n" +
         "test@\n" +
         input;
     service = new Service(memory);
     var writer = new StoryTestStringWriter(service);
     var storyTest = new StoryTest(service, writer).WithInput(storyTestText);
     storyTest.Execute();
     return writer.Tables;
 }
示例#3
0
 public Service(Service other)
     : base(other)
 {
 }