예제 #1
0
파일: Sum.cs 프로젝트: havok/ngenerics
        public void Simple()
        {
            var vector = new Vector3D(2, 3, 5);

            Assert.AreEqual(10, vector.Sum());

            Assert.AreEqual(2, vector.X);
            Assert.AreEqual(3, vector.Y);
            Assert.AreEqual(5, vector.Z);
        }
예제 #2
0
        public void SumExample()
        {
            var vector = new Vector3D(2, 3, 5);

            Assert.AreEqual(10, vector.Sum());
        }