protected override void CreateSetCurrentDemoActions(ModuleDescription module, bool checkMemoryLeaks) { base.CreateSetCurrentDemoActions(module, checkMemoryLeaks); AddConditionAction(DocumentBuildCompletedConditionFactory.Create(this), null); AddSimpleAction(delegate() { if (DemoBaseTesting.CurrentDemoModule != null) { DocumentPreviewControl activePreview = LayoutHelper.FindElement(DemoBaseTesting.CurrentDemoModule, IsDocumentViewer) as DocumentPreviewControl; Assert.IsNotNull(activePreview); } }); }
void WaitDocumentBuildCompleted() { AddConditionAction(DocumentBuildCompletedConditionFactory.Create(this), null); }