public void SetProperties(bool isFolder) { // Title suffix for problem with covers and movie with the same name string strThumb = GetStrThumb(); GUIPropertyManager.SetProperty("#director", Director); GUIPropertyManager.SetProperty("#genre", Genre); GUIPropertyManager.SetProperty("#cast", Cast); GUIPropertyManager.SetProperty("#dvdlabel", DVDLabel); GUIPropertyManager.SetProperty("#imdbnumber", IMDBNumber); GUIPropertyManager.SetProperty("#file", File); GUIPropertyManager.SetProperty("#plot", Plot); GUIPropertyManager.SetProperty("#plotoutline", PlotOutline); GUIPropertyManager.SetProperty("#userreview", UserReview); // Added GUIPropertyManager.SetProperty("#rating", Rating.ToString()); GUIPropertyManager.SetProperty("#tagline", TagLine); GUIPropertyManager.SetProperty("#votes", Votes); GUIPropertyManager.SetProperty("#credits", WritingCredits); GUIPropertyManager.SetProperty("#thumb", strThumb); GUIPropertyManager.SetProperty("#title", Title); GUIPropertyManager.SetProperty("#year", Year.ToString()); GUIPropertyManager.SetProperty("#runtime", RunTime.ToString()); GUIPropertyManager.SetProperty("#mpaarating", MPARating); string strValue = "no"; if (Watched > 0 && !isFolder) { strValue = "yes"; } if (isFolder) { strValue = string.Empty; } GUIPropertyManager.SetProperty("#iswatched", strValue); }
public void SetPlayProperties() { // Title suffix for problem with covers and movie with the same name string strThumb = GetStrThumb(); GUIPropertyManager.SetProperty("#Play.Current.Director", Director); GUIPropertyManager.SetProperty("#Play.Current.Genre", Genre); GUIPropertyManager.SetProperty("#Play.Current.Cast", Cast); GUIPropertyManager.SetProperty("#Play.Current.DVDLabel", DVDLabel); GUIPropertyManager.SetProperty("#Play.Current.IMDBNumber", IMDBNumber); GUIPropertyManager.SetProperty("#Play.Current.File", File); GUIPropertyManager.SetProperty("#Play.Current.Plot", Plot); GUIPropertyManager.SetProperty("#Play.Current.PlotOutline", PlotOutline); GUIPropertyManager.SetProperty("#Play.Current.UserReview", UserReview); // Added GUIPropertyManager.SetProperty("#Play.Current.Rating", Rating.ToString()); GUIPropertyManager.SetProperty("#Play.Current.TagLine", TagLine); GUIPropertyManager.SetProperty("#Play.Current.Votes", Votes); GUIPropertyManager.SetProperty("#Play.Current.Credits", WritingCredits); GUIPropertyManager.SetProperty("#Play.Current.Thumb", strThumb); GUIPropertyManager.SetProperty("#Play.Current.Title", Title); GUIPropertyManager.SetProperty("#Play.Current.Year", Year.ToString()); GUIPropertyManager.SetProperty("#Play.Current.Runtime", RunTime.ToString()); GUIPropertyManager.SetProperty("#Play.Current.MPAARating", MPARating); string strValue = "no"; if (Watched > 0) { strValue = "yes"; } GUIPropertyManager.SetProperty("#Play.Current.IsWatched", strValue); }
public void Run() { var rt = new RunTime <object>(Guid.NewGuid().ToString()); //Can't Test deeper? Assert.That(() => rt.Run(), Throws.TypeOf <FabricConnectionDeniedException>()); }
/// <summary> /// 重置状态 /// </summary> public void Reset() { // 重置执行时间 if (Mode == RunModes.Daily) { while (RunTime < DateTime.Now) { RunTime = RunTime.AddDays(1); } } else if (Mode == RunModes.Continuous) { if (RunTime < DateTime.Now) { RunTime = DateTime.Now.AddHours(Interval.Hours).AddMinutes(Interval.Minutes) .AddSeconds(Interval.Seconds); } } // 重置实例状态 foreach (Instance ins in Instances) { Analyzer.Reset(ins); } }
/// <summary> /// 引发 <see cref="HttpClient.RequestSuccess" /> 事件 /// </summary> /// <param name="ea">包含此事件的参数</param> public override void OnRequestSuccess(WebEventArgs ea) { base.OnRequestSuccess(ea); if (!RunTime.PreProcessWebMessage(this, ea.Context)) { ea.Cancelled = true; } }
internal string StoreSummaryResults() { string tablestyle = " style='border:solid #4472C4 1.0pt; text-align:center; cellpadding=0px; border-collapse:collapse; font-family: Calibri, sans-serif; size: 11pt; '"; string headerrowstyle = " style='background-color: #4472C4; color: #FFF; height:.2in; '"; string datarowstyle = " style='color: #000; height:.2in; '"; string tdstring = " width='156' style='width:116.85pt; border:solid #4472C4 1.0pt; text-align:center; padding:0in 5.4pt'"; string tdcounts = " width='96' style='width:1.0in; border:solid #4472C4 1.0pt;'"; string failcolor = "#F63438;"; string errcolor = "#F63438;"; if (TestFailureCount == 0) { failcolor = " #000'"; } if (TestErrorCount == 0) { failcolor = " #000'"; } string tdstylefail = " width='96' style='width:1.0in; border:solid #4472C4 1.0pt; color: " + failcolor + "'"; string tdstyleerror = " width='96' style='width:1.0in; border:solid #4472C4 1.0pt; color: " + errcolor + "'"; StringBuilder sb = new StringBuilder(); //header sb.Append("<table" + tablestyle + ">"); sb.Append("<tr" + headerrowstyle + ">"); sb.Append("<td" + tdstring + ">"); sb.Append("App.Browser</td>"); sb.Append("<td" + tdcounts + ">"); sb.Append("Tests Run</td>"); sb.Append("<td" + tdcounts + ">"); sb.Append("Passed</td>"); sb.Append("<td" + tdcounts + ">"); sb.Append("Failures</td>"); sb.Append("<td" + tdcounts + ">"); sb.Append("Errors</td>"); sb.Append("<td" + tdstring + ">"); sb.Append("Run Time (Sec)</td>"); sb.Append("</tr>"); //data sb.Append("<tr" + datarowstyle + ">"); sb.Append("<td" + tdstring + ">"); sb.Append(AppName + "." + AppBrowser + "</td>"); sb.Append("<td" + tdcounts + ">"); sb.Append(TestsRun + "</td>"); sb.Append("<td" + tdcounts + ">"); sb.Append(TestPassedCount + "</td>"); sb.Append("<td" + tdstylefail + ">"); sb.Append(TestFailureCount + "</td>"); sb.Append("<td" + tdstyleerror + ">"); sb.Append(TestErrorCount + "</td>"); sb.Append("<td" + tdstring + ">"); sb.Append(RunTime.ToString("##.#####") + "</td>"); sb.Append("</tr></table>"); return(sb.ToString()); }
protected void Application_Start() { RunTime = new RunTime(); AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); Database.SetInitializer <VendingMachineContext>(new DBInitializer()); }
/// <summary> /// Clear all proxy settings for current machine /// </summary> public void DisableAllSystemProxies() { if (RunTime.IsRunningOnMono()) { throw new Exception("Mono Runtime do not support system proxy settings."); } systemProxySettingsManager.DisableAllProxy(); }
private void ReceiveCallback(IAsyncResult result) { StateObject state = (StateObject)result.AsyncState; Socket handler = state.WorkSocket; try { int bytesRead = handler.EndReceive(result); state.Builder.Add(state.Buffer, 0, bytesRead); int total = state.Builder.GetInt32(0); if (total == state.Builder.Count) { DataEventArgs dex = DataEventArgs.Parse(state.Builder); lock (ResultTask) { state.Builder.ReSet(); try { DataEventArgs timout = _timeoutTask.FirstOrDefault(o => o.TaskId == dex.TaskId); if (timout == null) { ResultTask.AddOrUpdate(dex.TaskId, dex, (key, value) => value = dex); } } catch (Exception ex) { Console.WriteLine(ex); ResultTask.AddOrUpdate(dex.TaskId, dex, (key, value) => value = dex); } } try { TaskTicks time = new TaskTicks(); if (RunTime.TryGetValue(dex.TaskId, out time)) { time.OutQueTime = DateTime.Now.Ticks; RunTime.TryUpdate(dex.TaskId, time, time); } } catch (Exception ex) { Console.WriteLine(ex); } } else { handler.BeginReceive(state.Buffer, 0, StateObject.BufferSize, 0, new AsyncCallback(ReceiveCallback), state); } } catch (Exception ex) { state.Builder.ReSet(); GC.Collect(); Console.WriteLine(ex); _log.Error(ex); } }
static void test() { var script = Script.load_from_file("test_script.py"); using (var file = new StreamWriter(File.Open("output.txt", FileMode.Create))) { var run_time = new RunTime(script, file); run_time.run(); } }
public void ResetRuntime() { runtime = new RunTime(); runtime.empNum = 10229; runtime.depCode = "CD"; runtime.slsTime = 0.1; runtime.runTime = 0.1; runtime.stdTime = 0.05; runtime.actualTime = runtime.runTime; runtime.type = 'B'; }
public void OnDueDateIntervalChange( CswNbtNodeProp Prop, bool Creating ) { if( DueDateInterval.RateInterval.RateType == CswEnumRateIntervalType.Hourly ) { RunTime.setHidden( value: true, SaveToDb: true ); } else { RunTime.setHidden( value: false, SaveToDb: true ); } }
public override int GetHashCode() { unchecked { int hashCode = (WeatherReading != null ? WeatherReading.GetHashCode() : 0); hashCode = (hashCode * 397) ^ RunTime.GetHashCode(); hashCode = (hashCode * 397) ^ LastUpdated.GetHashCode(); hashCode = (hashCode * 397) ^ (ETag != null ? ETag.GetHashCode() : 0); return(hashCode); } }
/// <summary> /// Runs the tasks associated with the run time specified /// </summary> /// <param name="TimeToRun">Time to run</param> public void Run(RunTime TimeToRun) { Contract.Requires<ArgumentNullException>(Tasks != null, "Tasks"); if (Tasks.ContainsKey(TimeToRun)) { Tasks[TimeToRun].ForEach(x => { Log.Get().LogMessage("Running {0}", MessageType.Info, x.Name); x.Run(); }); } }
/// <summary> /// Runs the tasks associated with the run time specified /// </summary> /// <param name="TimeToRun">Time to run</param> public void Run(RunTime TimeToRun) { if (Tasks.ContainsKey(TimeToRun)) { Tasks[TimeToRun].ForEach(x => { if (BatComputer.Bootstrapper != null) BatComputer.Bootstrapper.Resolve<LogBase>(new NullLogger()).LogMessage("Running {0}", MessageType.Info, x.Name); x.Run(); }); } }
/// <summary> /// Runs the tasks associated with the run time specified /// </summary> /// <param name="TimeToRun">Time to run</param> public void Run(RunTime TimeToRun) { Contract.Requires <ArgumentNullException>(Tasks != null, "Tasks"); if (Tasks.ContainsKey(TimeToRun)) { Tasks[TimeToRun].ForEach(x => { Log.Get().LogMessage("Running {0}", MessageType.Info, x.Name); x.Run(); }); } }
// Use this for initialization void Start() { instance = this; transferScene = FindObjectOfType <TransferScene>(); customerSpawn = FindObjectOfType <CustomerSpawn>(); objmanager = FindObjectOfType <objmanager>(); start = true; _runtime = gameObject.GetComponent <Slider>(); _runtime.value = startTime; _runtime.minValue = 0f; _runtime.maxValue = 250f; }
/// <summary> /// This is the entry point of the service host process. /// </summary> private static void Main() { try { var rt = new RunTime<Service>("FactoryType"); rt.Run(); } catch (Exception e) { ServiceEventSource.Current.ServiceHostInitializationFailed(e.ToString()); throw; } }
private void ModelChanged(MDL0Node model) { if (model != null && !_targetModels.Contains(model)) { _targetModels.Add(model); } if (_targetModel != null) { _targetModel._isTargetModel = false; } if (_targetModel != null) { modelPanel.RemoveTarget(_targetModel); } if ((_targetModel = model) != null) { modelPanel.AddTarget(_targetModel); listPanel.VIS0Indices = _targetModel.VIS0Indices; _targetModel._isTargetModel = true; ResetVertexColors(); hurtboxEditor._mainControl_TargetModelChanged(null, null); } if (_resetCam) { modelPanel.ResetCamera(); RunTime.SetFrame(0); } else { _resetCam = true; } modelListsPanel1.Reset(); //if (TargetModelChanged != null) // TargetModelChanged(this, null); //_updating = true; //if (_targetModel != null && !_editingAll) // comboCharacters.SelectedItem = _targetModel; //_updating = false; if (_targetModel != null) { RenderBones = _targetModel._renderBones; } }
static async Task HttpTest(HttpContext hc, Func <Task> n) { if (!hc.WebSockets.IsWebSocketRequest) { return; } using (var webSocket = await hc.WebSockets.AcceptWebSocketAsync()) { var log = new HttpAgentLog(webSocket); RunTime RT = new RunTime(log, new Dictionary <string, string>()); byte[] ReceiveBuffer = new byte[4096]; var ReceiveSegment = new ArraySegment <byte>(ReceiveBuffer); while (webSocket.State == WebSocketState.Open) { try { var msg = await ReceiveStreamAsync(webSocket, ReceiveSegment, hc.RequestAborted); if (msg.type == MessageType.LRFunction) { var fun = ProtoBuf.Serializer.Deserialize <LRFunction>(new MemoryStream(msg.message)); LRFunctionRes res = new LRFunctionRes() { name = fun.name }; res.rtvalue = callLRRuntime(RT, fun); res.isContinue = true; var resMS = FormatFactory.getProtobufStream(res); await webSocket.SendAsync(resMS.ToArray(), WebSocketMessageType.Binary, true, hc.RequestAborted); } } catch (Exception e) { if (e.InnerException == null) { log.Error(e.Message); } else { log.Error(e.InnerException.Message); } break; } } Console.WriteLine("websocket is close!"); //到这已经断开链接了,再调用 CloseAsync 将报错 //await webSocket.CloseAsync(WebSocketCloseStatus.NormalClosure, "Closing", hc.RequestAborted); } }
/// <summary> /// Runs the tasks associated with the run time specified /// </summary> /// <param name="TimeToRun">Time to run</param> public void Run(RunTime TimeToRun) { if (Tasks.ContainsKey(TimeToRun)) { Tasks[TimeToRun].ForEach(x => { if (BatComputer.Bootstrapper != null) { BatComputer.Bootstrapper.Resolve <LogBase>(new NullLogger()).LogMessage("Running {0}", MessageType.Info, x.Name); } x.Run(); }); } }
public void FromTest() { Action test = () => { }; // Single run. StatisticsStopwatch.Measurement oneRun = RunTime.From(test); Assert.True(oneRun.MeasurementCount == 1); // Multiple runs. const int runs = 10; StatisticsStopwatch.Measurement multipleRuns = RunTime.From("Multiple runs", test, runs); Assert.True(multipleRuns.MeasurementCount == runs); }
public void Load(MainForm form) { mainForm = form; runTime = new RunTime(); form.SetStatus("Reading callstacks:"); form.ShowBar(true); form.Update(); loadCalls(); models = new Models(); prepareModels(); form.ShowBar(false); form.SetStatus("Loaded."); form.Update(); runTime = null; }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); EnchantOwner = reader.ReadMobile(); EnchantSerial = reader.ReadInt(); EnchantName = reader.ReadString(); EnchantDmg = reader.ReadInt(); EnchantHue = reader.ReadInt(); RunTime thisTimer = new RunTime(this); thisTimer.Start(); }
public object runCode(iRunLog log, Dictionary <string, string> Parameters) { SyntaxTree tree = CSharpSyntaxTree.ParseText("int " + code); var root = (CompilationUnitSyntax)tree.GetRoot(); //尝试修改代码插入一些函数,暂时不用 //StringBuilder codeTmp = new StringBuilder(); //foreach (var node in root.ChildNodes().First().ChildNodes().OfType<BlockSyntax>().First().ChildNodes()) { // var stmt1 = SyntaxFactory.ParseStatement("logLine(1);"); // var sss = root.InsertNodesBefore(node,new[] { stmt1 }); // int codeLine = node.GetLocation().GetLineSpan().StartLinePosition.Line + 1; // log.Log(root.ToFullString()); // codeTmp.Append($"logLine({codeLine});"); // codeTmp.Append(node.ToFullString()); //} //log.Log(codeTmp.ToString()); //var cc = root.ChildNodes().FirstOrDefault().ChildNodes().Skip(2).FirstOrDefault().ToFullString().TrimStart('{').TrimEnd('}'); //var result = CSharpScript.RunAsync(root.ChildNodes().First().ChildNodes().OfType<BlockSyntax>().First().ToFullString(), // globals: funLib); if (codeIssues.Any()) { Console.WriteLine("代码存在以下错误,请进行处理:"); foreach (var codeIssue in codeIssues) { string issue = $"严重性:{codeIssue.Severity}, 错误代码: {codeIssue.Id}, 说明: {codeIssue.Message},位置: {codeIssue.Line} 行 {codeIssue.Character}列"; Console.WriteLine(issue); } return(null); } var LRRunTime = new RunTime(log, Parameters); var result = CSharpScript.RunAsync(root.ChildNodes().First().ChildNodes().OfType <BlockSyntax>().First().ToFullString(), globals: LRRunTime); try { return(result.Result.ReturnValue); } catch (Exception e) { return(e); } }
public override string ToString() { if (InstrumentSerialNumber == string.Empty) { return(string.Format("{0},SN={1},LastRun={2},EventTime={3},{4},Pos={5},SWV={6}", EventCode.Code, SerialNumber, RunTime.ToString(DATETIME_FORMAT), EventTime.ToString(DATETIME_FORMAT), Passed ? "Passed" : "Failed", Position, SoftwareVersion)); } else { return(string.Format("{0},SN={1},Inst={2},LastRun={3},LastDock={4},{5},Pos={6},SWV={7}", EventCode.Code, SerialNumber, InstrumentSerialNumber, RunTime.ToString(DATETIME_FORMAT), EventTime.ToString(DATETIME_FORMAT), Passed ? "Passed" : "Failed", Position, SoftwareVersion)); } }
public void TestDeepCopy() { runtime.woNum = "0412313"; runtime.stopTime = DateTime.Now; runtime.stdTime = 0.1; runtime.startTime = DateTime.Now; runtime.soNum = 213131; runtime.slsTime = 1.1; runtime.seqNum = 55; runtime.runTime = 2.2; runtime.actualTime = 3.3; runtime.resCode = "AA"; runtime.part = "HDddddd"; runtime.isUsingStdTime = true; runtime.hasSolarsoftTime = true; runtime.empNum = 99999; runtime.depCode = "CCC"; runtime.type = 'P'; runtime.taskList.Add(new Task()); runtime.quantity = 1; RunTime replica = runtime.DeepCopy(); Assert.AreEqual(runtime.runTime, replica.runTime); Assert.AreEqual(runtime.actualTime, replica.actualTime); Assert.AreEqual(runtime.startTime, replica.startTime); Assert.AreEqual(runtime.stopTime, replica.stopTime); Assert.AreEqual(runtime.seqNum, replica.seqNum); Assert.AreEqual(runtime.type, replica.type); Assert.AreEqual(runtime.part, replica.part); Assert.AreEqual(runtime.woNum, replica.woNum); Assert.AreEqual(runtime.empNum, replica.empNum); Assert.AreEqual(runtime.depCode, replica.depCode); Assert.AreEqual(runtime.resCode, replica.resCode); Assert.AreEqual(runtime.soNum, replica.soNum); Assert.AreEqual(runtime.stdTime, replica.stdTime); Assert.AreEqual(runtime.slsTime, replica.slsTime); Assert.IsTrue(replica.hasSolarsoftTime); Assert.AreEqual(0, replica.taskList.Count); Assert.AreEqual(1, runtime.taskList.Count); Assert.IsTrue(replica.isUsingStdTime); Assert.AreEqual(0, replica.quantity); Assert.AreEqual(1, runtime.quantity); ResetRuntime(); }
public void Process() { RunTime runTime = new RunTime(); if (null != _detector.ImageIn) { runTime.LogStartRunTime(); _detector.Process(); runTime.LogEndRunTime(); runTime.GetRunTime(out _timeOfRun); } else { MessageBox.Show("DetectorForm: 当前无图像!"); } FormRefresh(true); return; }
public ValueGroup CalculateShowTime(bool onlyPlayed = true) { var runTime = new RunTime(); var shows = User == null ? GetAllOwnedEpisodes().Where(m => UserManager.Users.Any(m.IsPlayed) || !onlyPlayed) : GetAllOwnedEpisodes().Where(m => (m.IsPlayed(User) || !onlyPlayed) && m.IsVisible(User)); foreach (var show in shows) { runTime.Add(show.RunTimeTicks); } return(new ValueGroup { Title = onlyPlayed ? Constants.TotalWatched : Constants.TotalWatchableTime, ValueLineOne = runTime.ToLongString(), ValueLineTwo = "", Size = "half" }); }
public override void WriteXml(XmlWriter writer) { writer.WriteAttributeString("ItemID", ItemID); writer.WriteAttributeString("MinBuyout", MinBuyout.ToString()); writer.WriteAttributeString("MaxBuyout", MaxBuyout.ToString()); writer.WriteAttributeString("RunTime", RunTime.ToString()); writer.WriteAttributeString("Amount", Amount.ToString()); writer.WriteAttributeString("StackSize", StackSize.ToString()); writer.WriteAttributeString("AmountType", AmountType.ToString()); writer.WriteAttributeString("AutoFindAh", AutoFindAh.ToString()); writer.WriteAttributeString("BidPrecent", BidPrecent.ToString(CultureInfo.InvariantCulture)); writer.WriteAttributeString("UndercutPrecent", UndercutPrecent.ToString(CultureInfo.InvariantCulture)); writer.WriteAttributeString("UseCategory", UseCategory.ToString()); writer.WriteAttributeString("Category", Category.ToString()); writer.WriteAttributeString("SubCategoryType", SubCategory.GetType().Name); writer.WriteAttributeString("SubCategory", SubCategory.ToString()); writer.WriteAttributeString("X", loc.X.ToString()); writer.WriteAttributeString("Y", loc.Y.ToString()); writer.WriteAttributeString("Z", loc.Z.ToString()); writer.WriteAttributeString("PostIfBelowMinBuyout", PostIfBelowMinBuyout.ToString()); }
/// <summary> /// Set the given explicit end point as the default proxy server for current machine /// </summary> /// <param name="endPoint"></param> public void SetAsSystemHttpProxy(ExplicitProxyEndPoint endPoint) { if (RunTime.IsRunningOnMono()) { throw new Exception("Mono Runtime do not support system proxy settings."); } ValidateEndPointAsSystemProxy(endPoint); //clear any settings previously added ProxyEndPoints.OfType <ExplicitProxyEndPoint>().ToList().ForEach(x => x.IsSystemHttpProxy = false); systemProxySettingsManager.SetHttpProxy( Equals(endPoint.IpAddress, IPAddress.Any) | Equals(endPoint.IpAddress, IPAddress.Loopback) ? "127.0.0.1" : endPoint.IpAddress.ToString(), endPoint.Port); endPoint.IsSystemHttpProxy = true; #if !DEBUG firefoxProxySettingsManager.AddFirefox(); #endif Console.WriteLine("Set endpoint at Ip {0} and port: {1} as System HTTP Proxy", endPoint.IpAddress, endPoint.Port); }
public ValueGroup CalculateOverallTime(bool onlyPlayed = true) { var runTime = new RunTime(); var items = User == null ? GetAllBaseItems().Where(m => UserManager.Users.Any(m.IsPlayed) || !onlyPlayed) : GetAllBaseItems().Where(m => (m.IsPlayed(User) || !onlyPlayed) && m.IsVisible(User)); foreach (var item in items) { runTime.Add(item.RunTimeTicks); } return(new ValueGroup { Title = onlyPlayed ? Constants.TotalWatched : Constants.TotalWatchableTime, ValueLineOne = runTime.ToLongString(), ValueLineTwo = "", Raw = runTime.Ticks, Size = "half" }); }
// Traversal ////////////////////////// /* Altered by Rick Mugridge to dispatch on the first Fixture */ public void doTables(Parse tables) { summary["run date"] = DateTime.Now; summary["run elapsed time"] = new RunTime(); if (tables != null) { Parse fixtureName = FixtureName(tables); if (fixtureName != null) { try { Fixture fixture = getLinkedFixtureWithArgs(tables); fixture.interpretTables(tables); } catch (Exception e) { exception(fixtureName, e); interpretFollowingTables(tables); } } } }
public void Run() { var rt = new RunTime<object>(Guid.NewGuid().ToString()); //Can't Test deeper? Assert.That(() => rt.Run(), Throws.TypeOf<FabricConnectionDeniedException>()); }
// Traversal ////////////////////////// /* Altered by Rick Mugridge to dispatch on the first Fixture */ public void doTables(Parse tables) { summary["run date"] = DateTime.Now; summary["run elapsed time"] = new RunTime(); if (tables != null) { Parse fixtureName = FixtureName(tables); if (fixtureName != null) { try { Fixture fixture = getLinkedFixtureWithArgs(tables); fixture.interpretTables(tables); } catch (Exception e) { exception (fixtureName, e); interpretFollowingTables(tables); } } } }