public void TestParseSuccess() { var warp = new Warp(2) { [0] = new RectangleD(0, 0, -3, 0), [1] = new RectangleD(1000, 500, 3, 4.4) }; Assert.IsTrue(Warp.TryParse(warp.ToString(), out var parsed)); Assert.AreEqual(warp, parsed); }
public void TestParseFail() { Assert.IsFalse(Warp.TryParse("1,2 [3,3], 3,1 [1,2]", out var parsed)); }