// Travis.Frisinger - 28.01.2013 : Amended for Debug List <DebugItem> GetDebugOutputs(string theResult) { var result = new List <DebugItem>(); string resultString = theResult; DebugItem itemToAdd = new DebugItem(); var dds = Conditions; try { if (theResult == "True") { resultString = dds.TrueArmText; } else if (theResult == "False") { resultString = dds.FalseArmText; } itemToAdd.AddRange(new DebugItemStaticDataParams(resultString, "").GetDebugItemResult()); result.Add(itemToAdd); } // ReSharper disable EmptyGeneralCatchClause catch (Exception) // ReSharper restore EmptyGeneralCatchClause { itemToAdd.AddRange(new DebugItemStaticDataParams(resultString, "").GetDebugItemResult()); result.Add(itemToAdd); } _inner.SetDebugOutputs(result); return(result); }
// Travis.Frisinger - 28.01.2013 : Amended for Debug public List <DebugItem> GetDebugOutputs(IExecutionEnvironment dataList, string _theResult) { var result = new List <DebugItem>(); string resultString = _theResult; DebugItem itemToAdd = new DebugItem(); IDataListCompiler c = DataListFactory.CreateDataListCompiler(); var dds = Conditions; try { if (_theResult == "True") { resultString = dds.TrueArmText; } else if (_theResult == "False") { resultString = dds.FalseArmText; } itemToAdd.AddRange(new DebugItemStaticDataParams(resultString, "").GetDebugItemResult()); result.Add(itemToAdd); } // ReSharper disable EmptyGeneralCatchClause catch (Exception) // ReSharper restore EmptyGeneralCatchClause { itemToAdd.AddRange(new DebugItemStaticDataParams(resultString, "").GetDebugItemResult()); result.Add(itemToAdd); } _inner.SetDebugOutputs(result); return(result); }
List <DebugItem> GetDebugOutputs(string theResult) { var result = new List <DebugItem>(); string resultString = theResult; DebugItem itemToAdd = new DebugItem(); var dds = Conditions; try { resultString = GetResultString(theResult, dds); itemToAdd.AddRange(new DebugItemStaticDataParams(resultString, "").GetDebugItemResult()); result.Add(itemToAdd); } // ReSharper disable EmptyGeneralCatchClause catch (Exception) // ReSharper restore EmptyGeneralCatchClause { itemToAdd.AddRange(new DebugItemStaticDataParams(resultString, "").GetDebugItemResult()); result.Add(itemToAdd); } _inner?.SetDebugOutputs(result); return(result); }
List <DebugItem> GetDebugOutputs(string theResult) { var result = new List <DebugItem>(); var resultString = theResult; var itemToAdd = new DebugItem(); var dds = Conditions; try { resultString = GetResultString(theResult, dds); itemToAdd.AddRange(new DebugItemStaticDataParams(resultString, "").GetDebugItemResult()); result.Add(itemToAdd); } catch (Exception) { itemToAdd.AddRange(new DebugItemStaticDataParams(resultString, "").GetDebugItemResult()); result.Add(itemToAdd); } _inner?.SetDebugOutputs(result); return(result); }