public void GetDirectDependentsTest5() { Spreadsheet_Accessor target = new Spreadsheet_Accessor(); // TODO: Initialize to an appropriate value List<string> expected = new List<string>(); string name = "A022"; // target.SetContentsOfCell("A02", 4); IEnumerable<string> actual = target.GetDirectDependents(name); }
public void GetDirectDependentsTest3() { Spreadsheet_Accessor target = new Spreadsheet_Accessor(); // TODO: Initialize to an appropriate value List<string> expected = new List<string>(); string nullName = null; IEnumerable<string> actual = target.GetDirectDependents(nullName); CollectionAssert.AreEqual(expected, new List<string>(actual)); }
public void GetDirectDependentsTest2() { Spreadsheet_Accessor target = new Spreadsheet_Accessor(); List<string> expected = new List<string>(); IEnumerable<string> actual = target.GetDirectDependents("A1"); CollectionAssert.AreEqual(expected, new List<string>(actual)); }
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)); }
public void GetDirectDependentsNullTest() { Spreadsheet_Accessor target = new Spreadsheet_Accessor(); string name=null; target.GetDirectDependents(name); }
public void GetDirectDependentsInvalidName() { Spreadsheet_Accessor target = new Spreadsheet_Accessor(); target.GetDirectDependents("a0a"); }