Inheritance: CellProcessorBase, Copyable
コード例 #1
0
ファイル: FitServer.cs プロジェクト: GibSral/fitsharp
	    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
ファイル: Service.cs プロジェクト: vaibhavsapre/fitsharp
 public Service(Service other)
     : base(other)
 {
 }