public void CheckIfModelIsInitialized() { this.viewModel = new WorkbookRowViewModel(null); Assert.IsNull(this.viewModel.Workbook); Assert.IsNull(this.viewModel.Name); Assert.IsNull(this.viewModel.Path); }
/// <summary> /// populate the workbook row view-models that represent workbooks that are open in the /// excel application. /// </summary> /// <param name="application"> /// The Excel <see cref="Application"/> that contains workbooks /// </param> private void PopulateWorkbooks(Application application) { foreach (var workbook in application.Workbooks) { var row = new WorkbookRowViewModel(workbook); this.Workbooks.Add(row); } }
public void SetUp() { this.viewModel = null; }