public void TestToString() { IntersectionMatrix i = new IntersectionMatrix(); i.Set("012*TF012"); Assert.AreEqual("012*TF012", i.ToString()); IntersectionMatrix c = new IntersectionMatrix(i); Assert.AreEqual("012*TF012", c.ToString()); }
public void TestTranspose() { IntersectionMatrix x = new IntersectionMatrix("012*TF012"); IntersectionMatrix i = new IntersectionMatrix(x); IntersectionMatrix j = i.Transpose(); Assert.AreSame(i, j); Assert.AreEqual("0*01T12F2", i.ToString()); Assert.AreEqual("012*TF012", x.ToString()); }