public void Matrix_Conversion_ToMath() { var xnaMatrix = new XnaMatrix( 11, 12, 13, 14, 21, 22, 23, 24, 31, 32, 33, 34, 41, 42, 43, 44); Matrix matrix = xnaMatrix.ToMath(); Assert.AreEqual(xnaMatrix.M11, matrix.R1C1); Assert.AreEqual(xnaMatrix.M12, matrix.R1C2); Assert.AreEqual(xnaMatrix.M13, matrix.R1C3); Assert.AreEqual(xnaMatrix.M14, matrix.R1C4); Assert.AreEqual(xnaMatrix.M21, matrix.R2C1); Assert.AreEqual(xnaMatrix.M22, matrix.R2C2); Assert.AreEqual(xnaMatrix.M23, matrix.R2C3); Assert.AreEqual(xnaMatrix.M24, matrix.R2C4); Assert.AreEqual(xnaMatrix.M31, matrix.R3C1); Assert.AreEqual(xnaMatrix.M32, matrix.R3C2); Assert.AreEqual(xnaMatrix.M33, matrix.R3C3); Assert.AreEqual(xnaMatrix.M34, matrix.R3C4); Assert.AreEqual(xnaMatrix.M41, matrix.R4C1); Assert.AreEqual(xnaMatrix.M42, matrix.R4C2); Assert.AreEqual(xnaMatrix.M43, matrix.R4C3); Assert.AreEqual(xnaMatrix.M44, matrix.R4C4); }