/// <summary> /// override : use to set specific PostProcessResult parameter /// </summary> public virtual IterationResult SetIterationResult(ushort iterationNumber) { IterationResult.Iteration = iterationNumber; IterationResult.Step = Schedule.Step; var scenarii = GetAllStoppedScenarii(); IterationResult.Success = scenarii.All(s => s.Success); //IterationResult.HasItemsNotDone = scenarii.Exists(s => s.IterationResult.HasItemsNotDone); //IterationResult.NotFinishedInTime = scenarii.Exists(s => s.IterationResult.NotFinishedInTime); //IterationResult.SeemsToBeBlocked = scenarii.Exists(s => s.IterationResult.SeemsToBeBlocked); return(IterationResult.Clone()); }
public void CloneTest() { _specificResult.On = true; _result.SetResults(); Environment.Messages.Result.SentMessagesCost = 1; _result.Messages.SetResults(); var clone = _result.Clone(); Assert.IsNotNull(clone.Get <TestResult>()); Assert.IsTrue(clone.Get <TestResult>().Result); Assert.AreEqual(1, clone.Messages.SentMessagesCost); }