public void SetPathWithClipDoesCreatesCorrectRegion() { var clipRect = new SKRectI(25, 25, 50, 50); var clip = new SKRegion(); clip.SetRect(clipRect); var rect = new SKRectI(10, 20, 30, 40); var path = new SKPath(); path.AddRect(rect); var region = new SKRegion(); var isNonEmpty = region.SetPath(path, clip); Assert.IsTrue(isNonEmpty); Assert.AreEqual(SKRectI.Intersect(clipRect, rect), region.Bounds); }