public void SystemToPlatform() { var system = new System.Drawing.Rectangle(x, y, width, height); var platform = system.ToPlatformRectangle(); #if __ANDROID__ Assert.Equal(x, platform.Left); Assert.Equal(y, platform.Top); Assert.Equal(system.Left, platform.Left); Assert.Equal(system.Top, platform.Top); Assert.Equal(width, platform.Width()); Assert.Equal(height, platform.Height()); #else Assert.Equal(x, platform.X); Assert.Equal(y, platform.Y); Assert.Equal(width, platform.Width); Assert.Equal(height, platform.Height); #endif }