Skip to content

Commit 96bbf3e

Browse files
committed
Revert "Add tests"
This reverts commit 475f6e6.
1 parent 71482b5 commit 96bbf3e

File tree

2 files changed

+0
-35
lines changed

2 files changed

+0
-35
lines changed

src/Controls/tests/Xaml.UnitTests/TypeConverterTests.xaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
44
x:Class="Microsoft.Maui.Controls.Xaml.UnitTests.TypeConverterTests">
55
<StackLayout>
6-
<Grid x:Name="grid" RowDefinitions="*,10,Auto,1.25"></Grid>
76
<Image>
87
<Image.Source>
98
<UriImageSource Uri="https://xamarin.com/content/images/pages/branding/assets/xamagon.png" x:Name="imageSource"/>

src/Controls/tests/Xaml.UnitTests/TypeConverterTests.xaml.cs

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)