예제 #1
0
 public Result(string name)
 {
     if (name == null)
         throw new ArgumentNullException("name");
     this.name = name;
     this.monitor = new TestMonitor();
 }
 public void Update(TestMonitor monitor)
 {
     this.consoleError = UnitSerializer.XmlSerializerEscapeWorkAround(monitor.Console.Error);
     this.consoleOut = UnitSerializer.XmlSerializerEscapeWorkAround(monitor.Console.Out);
     this.startTime = monitor.Timer.StartTime.ToString("u");
     this.endTime = monitor.Timer.EndTime.ToString("u");
     this.duration = monitor.Timer.Duration;
     this.log = monitor.GetLog();
 }
 public XmlMonitor(TestMonitor monitor)
 {
     this.Update(monitor);
 }