public void OnPlatformMarkupAndNamedSizes(bool useCompiledXaml) { ((MockPlatformServices)Device.PlatformServices).RuntimePlatform = Device.iOS; var layout = new Gh4319(useCompiledXaml); Assert.That(layout.label.FontSize, Is.EqualTo(4d)); ((MockPlatformServices)Device.PlatformServices).RuntimePlatform = Device.Android; layout = new Gh4319(useCompiledXaml); Assert.That(layout.label.FontSize, Is.EqualTo(8d)); }
public void OnPlatformMarkupAndNamedSizes(bool useCompiledXaml) { mockDeviceInfo.Platform = DevicePlatform.iOS; var layout = new Gh4319(useCompiledXaml); Assert.That(layout.label.FontSize, Is.EqualTo(4d)); mockDeviceInfo.Platform = DevicePlatform.Android; layout = new Gh4319(useCompiledXaml); Assert.That(layout.label.FontSize, Is.EqualTo(8d)); }