Exemple #1
0
        public void SystemToPlatformF()
        {
            var system = new System.Drawing.RectangleF(x, y, width, height);

#if __ANDROID__
            var platform = system.ToPlatformRectangleF();
            Assert.Equal(x, platform.Left);
            Assert.Equal(y, platform.Top);
            Assert.Equal(width, platform.Width());
            Assert.Equal(height, platform.Height());
#else
            var platform = system.ToPlatformRectangle();
            Assert.Equal(x, platform.X);
            Assert.Equal(y, platform.Y);
            Assert.Equal(width, platform.Width);
            Assert.Equal(height, platform.Height);
#endif
        }