public void TestCreateCell(Spreadsheet.CellType type, Type expected) { Cell cell = Spreadsheet.CreateCell(type, 0, 0); Assert.AreEqual(expected, cell.GetType()); }
/// <summary> /// Initializes a new instance of the <see cref="Form1"/> class. /// </summary> public Form1() { this.InitializeComponent(); this.engine = new Cpts321.Spreadsheet(50, 26); }
public void Setup() { this.sheet = new Spreadsheet(2, 2); this.cells = (Cell[, ])Utility.GetField <Spreadsheet>("cells").GetValue(this.sheet); }