public static void TestVector4Constructor() { Vector4d v0 = new Vector4d(); v0.x.ShouldBe(0); v0.y.ShouldBe(0); v0.z.ShouldBe(0); v0.w.ShouldBe(0); Vector4d v1 = new Vector4d(5); v1.x.ShouldBe(5); v1.y.ShouldBe(0); v1.z.ShouldBe(0); v1.w.ShouldBe(0); Vector4d v2 = new Vector4d(5, 6); v2.x.ShouldBe(5); v2.y.ShouldBe(6); v2.z.ShouldBe(0); v2.w.ShouldBe(0); Vector4d v3 = new Vector4d(5, 6, 7); v3.x.ShouldBe(5); v3.y.ShouldBe(6); v3.z.ShouldBe(7); v3.w.ShouldBe(0); Vector4d v4 = new Vector4d(5, 6, 7, 8); v4.x.ShouldBe(5); v4.y.ShouldBe(6); v4.z.ShouldBe(7); v4.w.ShouldBe(8); Vector4d v5 = new Vector4d(5, 6, 7, 8, 9); v5.x.ShouldBe(5); v5.y.ShouldBe(6); v5.z.ShouldBe(7); v5.w.ShouldBe(8); Vector4d v6 = new Vector4d(v4); v6.ShouldBe(v4); }