Пример #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);
 }
Пример #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);
 }
Пример #3
0
 public void DiagramAdd()
 {
     Diagram test = new Diagram("test.sql");
     didactic_palm_tree.UIModel.IComponent testComponent = new TestComponent(0, 0);
     test.Add(testComponent);
 }