Exemple #1
0
        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);
        }
Exemple #2
0
 public void TestParseFail()
 {
     Assert.IsFalse(Warp.TryParse("1,2 [3,3], 3,1 [1,2]", out var parsed));
 }