示例#1
0
        public void Matrix2DTestValues()
        {
            Matrix2D test = new Matrix2D(1, 2, 3, 4);

            Assert.IsInstanceOf<Matrix2D>(test);
            Assert.AreEqual(1, test.A1);
            Assert.AreEqual(2, test.A2);
            Assert.AreEqual(3, test.B1);
            Assert.AreEqual(4, test.B2);
        }
示例#2
0
        public void Matrix2DTestDefault()
        {
            Matrix2D test = new Matrix2D();

            Assert.IsInstanceOf<Matrix2D>(test);
            Assert.AreEqual(1, test.A1);
            Assert.AreEqual(0, test.A2);
            Assert.AreEqual(0, test.B1);
            Assert.AreEqual(1, test.B2);
        }