Exemple #1
0
        public void TestNormalize()
        {
            var rect   = new CGRect(500, 600, 700, 800);
            var size   = new CGSize(900, 1000);
            var result = rect.Normalize(size);

            AssertUtilsIOS.AreEqualCGRect(
                new CGRect(rect.X / size.Width, rect.Y / size.Height, rect.Width / size.Width,
                           rect.Height / size.Height), result);
        }