Abacus.DoublePrecision.Vector4Tests.Test_Constructors_i C# (CSharp) Method

Test_Constructors_i() private method

private Test_Constructors_i ( ) : void
return void
        public void Test_Constructors_i ()
        {
            {
                // Test default values
                Vector4 a = new Vector4();
                Assert.That(a, Is.EqualTo(Vector4.Zero));
            }
            {
                // Test Vector4( Double, Double, Double, Double )
                Double a = -189;
                Double b = 429;
                Double c = 4298;
                Double d = 341;
                Vector4 e = new Vector4(a, b, c, d);
                Assert.That(e.X, Is.EqualTo(a));
                Assert.That(e.Y, Is.EqualTo(b));
                Assert.That(e.Z, Is.EqualTo(c));
                Assert.That(e.W, Is.EqualTo(d));
            }
            {
                // Test Vector4( Vector2, Double, Double )
                Vector2 a = new Vector2(-189, 429);
                Double b = 4298;
                Double c = 341;
                Vector4 d = new Vector4(a, b, c);
                Assert.That(d.X, Is.EqualTo(a.X));
                Assert.That(d.Y, Is.EqualTo(a.Y));
                Assert.That(d.Z, Is.EqualTo(b));
                Assert.That(d.W, Is.EqualTo(c));
            }
            {
                // Test Vector4( Vector3, Double )
                Vector3 a = new Vector3(-189, 429, 4298);
                Double b = 341;
                Vector4 c = new Vector4(a, b);
                Assert.That(c.X, Is.EqualTo(a.X));
                Assert.That(c.Y, Is.EqualTo(a.Y));
                Assert.That(c.Z, Is.EqualTo(a.Z));
                Assert.That(c.W, Is.EqualTo(b));
            }
        }
Vector4Tests