Ejemplo n.º 1
0
 public void positionTest()
 {
     PowerPoint.Shape shape = new MockShape();
     shape.Left = 30f;
     shape.Top = 55f;
     int id = 5;
     TildaShape target = new TildaShape(shape, id);
     string expected = (double)(shape.Left * Settings.Scaler()) + "," + (double)(shape.Top * Settings.Scaler());
     string actual;
     actual = target.position();
     Assert.AreEqual(expected, actual);
 }