Beispiel #1
0
 private void Expect_ArchDatasourceSet()
 {
     ddlArchitecture = mr.StrictMock <IComboBox>();
     ddlArchitecture.Expect(d => d.DataSource = null)
     .IgnoreArguments()
     .WhenCalled(m => { this.archNames = ((IEnumerable)m.Arguments[0]).OfType <ListOption>().ToArray(); });
     dlg.Expect(d => d.Architectures).Return(ddlArchitecture);
 }
Beispiel #2
0
 private void Expect_RawFilesDatasourceSet()
 {
     ddlRawFiles = mr.Stub <IComboBox>();
     ddlRawFiles.Expect(d => d.DataSource = null)
     .IgnoreArguments()
     .WhenCalled(m => { this.rawFileNames = ((IEnumerable)m.Arguments[0]).OfType <ListOption>().ToArray(); });
     dlg.Expect(d => d.RawFileTypes).Return(ddlRawFiles);
     ddlRawFiles.Stub(d => d.TextChanged += null).IgnoreArguments();
 }