public void DiagramAddAndRetrive() { Diagram test = new Diagram("test.sql"); didactic_palm_tree.UIModel.IComponent testComponent = new TestComponent(0, 0); test.Add(testComponent); Assert.AreEqual(test.GetComponent(new Point(0, 0)), testComponent); }
public void DiagramAddSaveAndRetrive() { Diagram test = Diagram.CreateNew("test.sql"); didactic_palm_tree.UIModel.IComponent testComponent = new TestComponent(0, 0); test.Add(testComponent); test.Save(); Diagram test2 = Diagram.Load("test.sql"); Assert.AreEqual(test2.GetComponent(new Point(0, 0)), testComponent); }
public void DiagramAdd() { Diagram test = new Diagram("test.sql"); didactic_palm_tree.UIModel.IComponent testComponent = new TestComponent(0, 0); test.Add(testComponent); }