Example #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);
 }
Example #2
0
 private void Expect_PlatformDataSourceSet()
 {
     ddlPlatform = mr.StrictMock <IComboBox>();
     ddlPlatform.Expect(d => d.DataSource = null)
     .IgnoreArguments()
     .WhenCalled(m => { this.platformNames = ((IEnumerable)m.Arguments[0]).OfType <ListOption>().ToArray(); });
     dlg.Expect(d => d.Platforms).Return(ddlPlatform);
 }
 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);
 }
Example #4
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();
 }
 private void Expect_RawFilesDatasourceSet()
 {
     ddlRawFiles= mr.StrictMock<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();
 }
 private void Expect_PlatformDataSourceSet()
 {
     ddlPlatform = mr.StrictMock<IComboBox>();
     ddlPlatform.Expect(d => d.DataSource = null)
         .IgnoreArguments()
         .WhenCalled(m => { this.platformNames = ((IEnumerable) m.Arguments[0]).OfType<ListOption>().ToArray(); });
     dlg.Expect(d => d.Platforms).Return(ddlPlatform);
 }