public void InsertRowTest3()
{
double[,] a =
{
{ 100.00, 27.56, 33.89},
{ 27.56, 100.00, 24.76},
{ 33.89, 24.76, 100.00}
};
Assert.AreEqual(3, a.GetLength(0));
Assert.AreEqual(3, a.GetLength(1));
double[,] b = a.InsertColumn(new double[] { 1, 2, 3 });
Assert.AreEqual(3, a.GetLength(0));
Assert.AreEqual(3, a.GetLength(1));
Assert.AreEqual(3, b.GetLength(0));
Assert.AreEqual(4, b.GetLength(1));
double[,] c = a.InsertRow(new double[] { 1, 2, 3 });
Assert.AreEqual(3, a.GetLength(0));
Assert.AreEqual(3, a.GetLength(1));
Assert.AreEqual(4, c.GetLength(0));
Assert.AreEqual(3, c.GetLength(1));
a = a.InsertColumn(new double[] { 1, 2, 3 })
.InsertRow(new double[] { 1, 2, 3 });
Assert.AreEqual(4, a.GetLength(0));
Assert.AreEqual(4, a.GetLength(1));
}