Пример #1
0
 public void TestConstructor() {
   SkyboxVertex vertex = new SkyboxVertex(
     new Vector3(1.0f, 2.0f, 3.0f), new Vector2(4.0f, 5.0f)
   );
   
   Assert.AreEqual(1.0f, vertex.Position.X);
   Assert.AreEqual(2.0f, vertex.Position.Y);
   Assert.AreEqual(3.0f, vertex.Position.Z);
   Assert.AreEqual(4.0f, vertex.TextureCoordinate.X);
   Assert.AreEqual(5.0f, vertex.TextureCoordinate.Y);
 }
Пример #2
0
        public void TestConstructor()
        {
            SkyboxVertex vertex = new SkyboxVertex(
                new Vector3(1.0f, 2.0f, 3.0f), new Vector2(4.0f, 5.0f)
                );

            Assert.AreEqual(1.0f, vertex.Position.X);
            Assert.AreEqual(2.0f, vertex.Position.Y);
            Assert.AreEqual(3.0f, vertex.Position.Z);
            Assert.AreEqual(4.0f, vertex.TextureCoordinate.X);
            Assert.AreEqual(5.0f, vertex.TextureCoordinate.Y);
        }