public void Color_ConvertColorToNetColor()
        {
            var color     = new PixColor(100, 150, 200);
            var castColor = color.ToColor();

            Assert.AreEqual(castColor.R, color.Red);
            Assert.AreEqual(castColor.G, color.Green);
            Assert.AreEqual(castColor.B, color.Blue);
            Assert.AreEqual(castColor.A, color.Alpha);
        }
Beispiel #2
0
        public void Color_ConvertColorToNetColor()
        {
            var color     = new PixColor(100, 150, 200);
            var castColor = color.ToColor();

            Assert.That(castColor.R, Is.EqualTo(color.Red));
            Assert.That(castColor.G, Is.EqualTo(color.Green));
            Assert.That(castColor.B, Is.EqualTo(color.Blue));
            Assert.That(castColor.A, Is.EqualTo(color.Alpha));
        }