diff --git a/src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Given_HotReloadService.cs b/src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Given_HotReloadService.cs index 992ac2bae031..bb5ba0926b45 100644 --- a/src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Given_HotReloadService.cs +++ b/src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Given_HotReloadService.cs @@ -14,6 +14,12 @@ public async Task HR(string name, Scenario? scenario, Project[]? projects) { if (scenario != null) { + if (scenario.IsCrashingRoslyn) + { + Assert.Inconclusive("Case is known to crash roslyn."); + return; + } + var results = await ApplyScenario(projects, scenario.IsDebug, scenario.IsMono, scenario.UseXamlReaderReload, name); for (var i = 0; i < scenario.PassResults.Length; i++) @@ -36,7 +42,7 @@ public record ScenariosDescriptor( public record Project(string Name, ProjectReference[]? ProjectReferences); public record ProjectReference(string Name); - public record Scenario(bool IsDebug, bool IsMono, bool UseXamlReaderReload, params PassResult[] PassResults) + public record Scenario(bool IsDebug, bool IsMono, bool IsCrashingRoslyn, bool UseXamlReaderReload, params PassResult[] PassResults) { public override string ToString() => $"{(IsDebug ? "Debug" : "Release")},{(IsMono ? "MonoVM" : "NetCore")},XR:{UseXamlReaderReload}"; @@ -53,7 +59,7 @@ public record DiagnosticsResult(string Id); var path = Path.Combine(scenarioFolder, "Scenario.json"); #if DEBUG && false - if (!path.Contains("When_Simple_Xaml_Add_xBind_Function_Property_Add")) + if (!path.Contains("When_DataTemplate_xLoad_xBind_Remove")) { continue; } diff --git a/src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xBind_Event_Add/0/p1/MainPage.xaml b/src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xBind_Event_Add/0/p1/MainPage.xaml new file mode 100644 index 000000000000..f8d477b0e53d --- /dev/null +++ b/src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xBind_Event_Add/0/p1/MainPage.xaml @@ -0,0 +1,19 @@ + + + + +