Ejemplo n.º 1
0
        public void CanConvertNumericVectorToNumericVector()
        {
            float x = _fixture.Create<float>();
            float y = _fixture.Create<float>();
            float z = _fixture.Create<float>();

            Vector3 vector = new Vector3(x, y, z);
            OpenTK.Vector3 openTKVector = vector.ToOpenTKVector();

            Assert.That(openTKVector, Is.Not.Null);
            Assert.That(openTKVector.X, Is.EqualTo(vector.X));
            Assert.That(openTKVector.Y, Is.EqualTo(vector.Y));
            Assert.That(openTKVector.Z, Is.EqualTo(vector.Z));
        }