public void AreaToAreaSerialized() { var original = new Area(TestUtils.Enumerable <Point>((1, 2), (3, 4), (5, 6))); AreaSerialized expressive = (AreaSerialized)original; var converted = (Area)expressive; Assert.Equal(original, converted); }
// Compares two AreaSerialized instances private static bool AreaSerializedCompare(AreaSerialized o1, AreaSerialized o2) => ElementWiseEquality(o1.Positions, o2.Positions);