Afterglow.Math.Test_Vector4.Constructor_with_array_as_argument C# (CSharp) Method

Constructor_with_array_as_argument() private method

private Constructor_with_array_as_argument ( ) : void
return void
        public void Constructor_with_array_as_argument()
        {
            const float X = 1.0f;
            const float Y = 2.0f;
            const float Z = 3.0f;
            const float W = 4.0f;
            var values = new[] { X, Y, Z, W };

            var vector4 = new Vector4(values);

            Assert.AreEqual(X, vector4.X);
            Assert.AreEqual(Y, vector4.Y);
            Assert.AreEqual(Z, vector4.Z);
            Assert.AreEqual(W, vector4.W);
        }