Example #1
0
        public void Matrix3x2ToStringTest()
        {
            Matrix3x2 a = new Matrix3x2();

            a.M11 = 11.0f;
            a.M12 = -12.0f;
            a.M21 = 21.0f;
            a.M22 = 22.0f;
            a.M31 = 31.0f;
            a.M32 = 32.0f;

            string expected = "{ {M11:11 M12:-12} " +
                              "{M21:21 M22:22} " +
                              "{M31:31 M32:32} }";
            string actual;

            actual = a.ToString();
            Assert.Equal(expected, actual);
        }