Пример #1
0
        public void ChangeColor()
        {
            var line = new Line2D(Vector2D.Zero, Vector2D.One, Color.Red)
            {
                Color = Color.Green
            };

            Assert.AreEqual(Color.Green, line.Color);
            Assert.AreEqual(Color.Green, line.Get <Color>());
        }
Пример #2
0
		public void ChangeColor()
		{
			var line = new Line2D(Vector2D.Zero, Vector2D.One, Color.Red) { Color = Color.Green };
			Assert.AreEqual(Color.Green, line.Color);
			Assert.AreEqual(Color.Green, line.Get<Color>());
		}