Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 public void DiagramAdd()
 {
     Diagram test = new Diagram("test.sql");
     didactic_palm_tree.UIModel.IComponent testComponent = new TestComponent(0, 0);
     test.Add(testComponent);
 }