private void When_CreateDlg() { dlg = mr.Stub <ISymbolSourceDialog>(); dlg.Stub(d => d.Services).Return(sc); dlg.Stub(d => d.Dispose()); dlg.Replay(); }
public void TearDown() { if (dlg != null) { dlg.Dispose(); } dlg = null; }
public void Attach(ISymbolSourceDialog dlg) { this.dlg = dlg; this.dlg.Load += Dlg_Load; this.dlg.SymbolFileUrl.LostFocus += SymbolFileUrl_LostFocus; this.dlg.CustomSourceCheckbox.CheckedChanged += CustomSourceCheckbox_CheckedChanged; this.dlg.AssemblyFile.TextChanged += AssemblyFile_TextChanged; this.dlg.BrowseAssemblyFile.Click += BrowseAssemblyFile_Click; }