public void TestAddFrameVertices() { Compression compression = new Compression(); List <float> verticesBuffer = new List <float>() { 3, 2, -1, 0 }; compression.AddFrame(verticesBuffer); CollectionAssert.AreEqual(verticesBuffer, compression.Frame.Vertices); }
public void TestAddFrane() { Compression compression = new Compression(); Frame mesh = new Frame(new List <float>() { 0.5f, 0.3f }, new List <Face>() { new Face() }, new List <float>() { 1, 2 }); compression.AddFrame(mesh); CollectionAssert.AreEqual(mesh.Vertices, compression.Frame.Vertices); CollectionAssert.AreEqual(mesh.Faces, compression.Frame.Faces); CollectionAssert.AreEqual(mesh.TextureCoords, compression.Frame.TextureCoords); }