public void TestCreateCellWithNumbers1() { for (int i = 1; i < 10; i++) { s.SetCellContents("A" + i, i); } List <object> list = new List <object>(); foreach (object t in s.GetNamesOfAllNonemptyCells()) { list.Add(t); } Assert.IsTrue(list.Count == 9); }