public void GetDirectDependentsTest4() { Spreadsheet_Accessor target = new Spreadsheet_Accessor(); // TODO: Initialize to an appropriate value List<string> expected = new List<string>(); string name = "A22"; target.SetContentsOfCell("A2", "4"); IEnumerable<string> actual = target.GetDirectDependents(name); }
public void GetDirectDependentsTest1() { Spreadsheet_Accessor target = new Spreadsheet_Accessor(); // TODO: Initialize to an appropriate value target.SetContentsOfCell("A1", "3"); target.SetContentsOfCell("B1", "=A1 * A1"); target.SetContentsOfCell("C1", "= B1 + A1"); target.SetContentsOfCell("D1", "= B1 - C1"); List<string> expected = new List<string>(); expected.Add("B1"); expected.Add("C1"); IEnumerable<string> actual = target.GetDirectDependents("A1"); CollectionAssert.AreEqual(expected, new List<string>(actual)); }