@@ -10,40 +10,6 @@ public partial class TypeConverterTests : ContentPage
1010
1111 public class Tests
1212 {
13- [ Test ]
14- public void GridLengthsAreConverted ( [ Values ] XamlInflator inflator ,
15- [ Values ( "en-US" , "pt-PT" ) ] string culture )
16- {
17- System . Threading . Thread . CurrentThread . CurrentCulture = new System . Globalization . CultureInfo ( culture ) ;
18-
19- if ( inflator == XamlInflator . SourceGen )
20- {
21- var result = MockSourceGenerator . CreateMauiCompilation ( )
22- . WithAdditionalSource (
23- """
24- using System;
25- using NUnit.Framework;
26-
27- namespace Microsoft.Maui.Controls.Xaml.UnitTests;
28-
29- [XamlProcessing(XamlInflator.Default, true)]
30- public partial class TypeConverterTests : ContentPage
31- {
32- public TypeConverterTests() => InitializeComponent();
33- }
34- """ ) . RunMauiSourceGenerator ( typeof ( TypeConverterTests ) ) ;
35-
36- Assert . That ( result . Diagnostics , Is . Empty ) ;
37- }
38- var page = new TypeConverterTests ( inflator ) ;
39- Assert . That ( page . grid , Is . TypeOf < Grid > ( ) ) ;
40- Assert . AreEqual ( 4 , page . grid . RowDefinitions . Count ) ;
41- Assert . AreEqual ( GridLength . Star , page . grid . RowDefinitions [ 0 ] . Height ) ;
42- Assert . AreEqual ( 10 , page . grid . RowDefinitions [ 1 ] . Height . Value ) ;
43- Assert . AreEqual ( GridLength . Auto , page . grid . RowDefinitions [ 2 ] . Height ) ;
44- Assert . AreEqual ( 1.25 , page . grid . RowDefinitions [ 3 ] . Height . Value ) ;
45- }
46-
4713 [ Test ]
4814 public void UriAreConverted ( [ Values ] XamlInflator inflator )
4915 {
0 commit comments