public Result process(string fragment)
 {
     ProcessingResult r = new TestRig()
         .WithFixture(this)
         .ProcessFragment(fragment);
     
     Result result = new Result();
     result.successCount = r.SuccessCount;
     result.failureCount = r.FailureCount;
     result.exceptionCount = r.ExceptionCount;
     
     // TODO - repair this
     var lastEvent = r.GetLastAssertEqualsFailureEvent();
     if (lastEvent != null)
     {
         result.lastActualValue = lastEvent.Actual;
         result.lastExpectedValue = lastEvent.Expected;
     }
     
     return result;
 }
示例#2
0
        public Result process(string fragment)
        {
            ProcessingResult r = new TestRig()
                                 .WithFixture(this)
                                 .ProcessFragment(fragment);

            Result result = new Result();

            result.successCount   = r.SuccessCount;
            result.failureCount   = r.FailureCount;
            result.exceptionCount = r.ExceptionCount;

            // TODO - repair this
            var lastEvent = r.GetLastAssertEqualsFailureEvent();

            if (lastEvent != null)
            {
                result.lastActualValue   = lastEvent.getActual();
                result.lastExpectedValue = lastEvent.getExpected();
            }

            return(result);
        }