public void Constructor() { var ellipse = new Ellipse(Point.Half, 0.1f, 0.2f); Assert.AreEqual(Point.Half, ellipse.Center); Assert.AreEqual(0.1f, ellipse.RadiusX); Assert.AreEqual(0.2f, ellipse.RadiusY); }
public void AddElements() { var bubbleList = new BubbleSortedList(); var ellipse5 = new Ellipse(Point.Zero, 0.5f, 0.7f) { RenderLayer = 3 }; var ellipse6 = new Ellipse(Point.Zero, 0.5f, 0.7f) { RenderLayer = 0 }; bubbleList.Add(ellipse5); bubbleList.Add(ellipse3); bubbleList.Add(ellipse4); bubbleList.Add(ellipse6); Assert.AreEqual(ellipse3, bubbleList[0]); Assert.AreEqual(ellipse4, bubbleList[1]); Assert.AreEqual(ellipse6, bubbleList[2]); Assert.AreEqual(ellipse5, bubbleList[3]); }
public void BorderColor() { var ellipse = new Ellipse(Point.Half, 0.1f, 0.2f) { BorderColor = Color.Cyan }; Assert.AreEqual(Color.Cyan, ellipse.BorderColor); }