示例#1
0
        public void Simple()
        {
            var vector = new Vector3D(1, 2, 34);

            vector.SetValues(4, 6, 8);

            Assert.AreEqual(4, vector.X);
            Assert.AreEqual(6, vector.Y);
            Assert.AreEqual(8, vector.Z);
        }
示例#2
0
 public void ExceptionTooManyValues()
 {
     var vector = new Vector3D();
     vector.SetValues(4, 6, 3, 7);
 }
示例#3
0
 public void ExcepionNotEnoughValues()
 {
     var vector = new Vector3D();
     vector.SetValues(4);
 }
示例#4
0
 public void ExceptionNoValues()
 {
     var vector = new Vector3D();
     vector.SetValues();
 }
示例#5
0
        public void ProductExample()
        {
            var vector3D = new Vector3D();
            vector3D.SetValues(2, 3, 5);

            Assert.AreEqual(30, vector3D.Product());
        }