Exemplo n.º 1
0
 public void ConstructorWithColor()
 {
     var circle = new Circle(Point.Half, 0.1f, Color.Blue);
     Assert.AreEqual(Point.Half, circle.Center);
     Assert.AreEqual(0.1f, circle.Radius);
     Assert.AreEqual(Color.Blue, circle.Color);
 }
Exemplo n.º 2
0
 public void SetRadius()
 {
     var circle = new Circle(Point.Half, 0.1f);
     Assert.AreEqual(0.1f, circle.Radius);
     circle.Radius = 0.7f;
     Assert.AreEqual(0.7f, circle.Radius);
     circle.Radius = 0.7f;
     Assert.AreEqual(0.7f, circle.Radius);
 }
Exemplo n.º 3
0
 public void BorderColor()
 {
     var circle = new Circle(Point.Half, 0.1f) { BorderColor = Color.Cyan };
     Assert.AreEqual(Color.Cyan, circle.BorderColor);
 }