void _Fault(RunContext context, uint currentIteration, Dom.StateModel stateModel, Fault[] faults) { Assert.Null(this.faults); Assert.True(context.reproducingFault); Assert.AreEqual(1, context.reproducingInitialIteration); this.faults = faults; }
void _Fault(RunContext context, uint currentIteration, Dom.StateModel stateModel, Fault[] faults) { Assert.AreEqual(expectedFaultIteration, currentIteration); Assert.AreEqual(1, faults.Length); Assert.AreEqual(expectedFaultIteration, faults[0].iteration); testResults.Add("Success"); }
void _AppendFault(RunContext context, uint currentIteration, Dom.StateModel stateModel, Fault[] faults) { List <Fault> tmp = new List <Fault>(); if (this.faults != null) { tmp.AddRange(this.faults); } tmp.AddRange(faults); this.faults = tmp.ToArray(); }
void _Fault(RunContext context, uint currentIteration, Dom.StateModel stateModel, Fault[] faults) { Assert.AreEqual(3, faults.Length); Assert.AreEqual("Collected 0 packets.", faults[0].description); Assert.AreEqual(1, faults[0].collectedData.Keys.Count); Assert.True(faults[0].collectedData.ContainsKey("Mon0_NetworkCapture.pcap")); Assert.Greater(faults[0].collectedData["Mon0_NetworkCapture.pcap"].Length, 0); Assert.AreEqual("Collected 1 packets.", faults[1].description); Assert.AreEqual(1, faults[1].collectedData.Keys.Count); Assert.True(faults[1].collectedData.ContainsKey("Mon1_NetworkCapture.pcap")); Assert.Greater(faults[1].collectedData["Mon1_NetworkCapture.pcap"].Length, 0); Assert.AreEqual("Collected 2 packets.", faults[2].description); Assert.AreEqual(1, faults[2].collectedData.Keys.Count); Assert.True(faults[2].collectedData.ContainsKey("Mon2_NetworkCapture.pcap")); Assert.Greater(faults[2].collectedData["Mon2_NetworkCapture.pcap"].Length, 0); testResults.Add("Success"); }
void _Fault(RunContext context, uint currentIteration, Dom.StateModel stateModel, Fault[] faults) { Assert.AreEqual(3, faults.Length); Assert.AreEqual("Collected 0 packets.", faults[0].description); Assert.AreEqual(1, faults[0].collectedData.Count); Assert.AreEqual("Mon0", faults[0].monitorName); Assert.AreEqual("NetworkCapture.pcap", faults[1].collectedData[0].Key); Assert.Greater(faults[0].collectedData[0].Value.Length, 0); Assert.AreEqual("Collected 1 packets.", faults[1].description); Assert.AreEqual(1, faults[1].collectedData.Count); Assert.AreEqual("Mon1", faults[1].monitorName); Assert.AreEqual("NetworkCapture.pcap", faults[1].collectedData[0].Key); Assert.Greater(faults[1].collectedData[0].Value.Length, 0); Assert.AreEqual("Collected 2 packets.", faults[2].description); Assert.AreEqual(1, faults[2].collectedData.Count); Assert.AreEqual("Mon2", faults[2].monitorName); Assert.AreEqual("NetworkCapture.pcap", faults[2].collectedData[0].Key); Assert.Greater(faults[2].collectedData[0].Value.Length, 0); testResults.Add("Success"); }
void e_Fault(RunContext context, uint currentIteration, Dom.StateModel stateModel, Fault[] faultData) { VerifyFaults("Faults", context, currentIteration); }
void e_Fault(RunContext context, uint currentIteration, Dom.StateModel stateModel, Fault[] faultData) { faults[currentIteration] = faultData; }
void _Fault(RunContext context, uint currentIteration, Dom.StateModel stateModel, Fault[] faults) { Assert.Null(this.faults); this.faults = faults; }
void _Fault(RunContext context, uint currentIteration, Dom.StateModel stateModel, Fault[] faultData) { Assert.Null(faults); faults = faultData; }