public void ConvertFrom() { var conv = new MatrixConverter(); object obj = conv.ConvertFrom("1, 2, 3, 4, 5, 6"); Assert.AreEqual(typeof(Matrix), obj.GetType()); CheckMatrix(new Matrix(1, 2, 3, 4, 5, 6), (Matrix)obj); }
public void ConvertFromInvalidType() { var conv = new MatrixConverter(); conv.ConvertFrom(new Matrix(10, 20, 30, 40, 50, 60)); }