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

ToVector3_returns_the_XYZ_components() private method

private ToVector3_returns_the_XYZ_components ( ) : void
return void
        public void ToVector3_returns_the_XYZ_components()
        {
            var vector = new Vector4(2.0f, 3.0f, 4.0f, 5.0f);

            var vector3 = vector.ToVector3();

            vector3.X.ShouldEqual(vector.X);
            vector3.Y.ShouldEqual(vector.Y);
            vector3.Z.ShouldEqual(vector.Z);
        }