コード例 #1
0
ファイル: Bz55343.xaml.cs プロジェクト: ultracpy/maui
            public void OnPlatformFontConversion(bool useCompiledXaml)
            {
                ((MockPlatformServices)Device.PlatformServices).RuntimePlatform = Device.iOS;
                var layout = new Bz55343(useCompiledXaml);

                Assert.That(layout.label0.FontSize, Is.EqualTo(16d));
                Assert.That(layout.label1.FontSize, Is.EqualTo(64d));
            }
コード例 #2
0
            public void OnPlatformFontConversion(bool useCompiledXaml)
            {
                mockDeviceInfo.Platform = DevicePlatform.iOS;
                var layout = new Bz55343(useCompiledXaml);

                Assert.That(layout.label0.FontSize, Is.EqualTo(16d));
                Assert.That(layout.label1.FontSize, Is.EqualTo(64d));
            }