From 6c3cc54c05f7398a5bba038d80dcad255d8f8b52 Mon Sep 17 00:00:00 2001 From: David Date: Fri, 13 Dec 2024 16:57:23 -0500 Subject: [PATCH] test(HR): Add several test scenario --- .../Given_HotReloadService.cs | 10 +++- .../0/p1/MainPage.xaml | 19 ++++++++ .../0/p1/MainPage.xaml.cs | 0 .../1/p1/MainPage.xaml | 19 ++++++++ .../1/p1/MainPage.xaml.cs | 28 +++++++++++ .../Scenario.json | 0 .../0/p1/MainPage.xaml | 19 ++++++++ .../0/p1/MainPage.xaml.cs | 24 ++++++++++ .../1/p1/MainPage.xaml | 19 ++++++++ .../1/p1/MainPage.xaml.cs | 28 +++++++++++ .../2/p1/MainPage.xaml | 19 ++++++++ .../2/p1/MainPage.xaml.cs | 24 ++++++++++ .../Scenario.json | 24 ++++++++++ .../0/p1/MainPage.xaml | 19 ++++++++ .../0/p1/MainPage.xaml.cs | 28 +++++++++++ .../1/p1/MainPage.xaml | 19 ++++++++ .../1/p1/MainPage.xaml.cs | 24 ++++++++++ .../Scenario.json | 24 ++++++++++ .../0/p1/MainPage.xaml | 19 ++++++++ .../0/p1/MainPage.xaml.cs | 28 +++++++++++ .../1/p1/MainPage.xaml | 19 ++++++++ .../1/p1/MainPage.xaml.cs | 28 +++++++++++ .../Scenario.json | 24 ++++++++++ .../0/p1/MainPage.xaml | 19 ++++++++ .../0/p1/MainPage.xaml.cs | 24 ++++++++++ .../1/p1/MainPage.xaml | 19 ++++++++ .../1/p1/MainPage.xaml.cs | 26 +++++++++++ .../Scenario.json | 24 ++++++++++ .../0/p1/MainPage.xaml | 19 ++++++++ .../0/p1/MainPage.xaml.cs | 24 ++++++++++ .../1/p1/MainPage.xaml | 19 ++++++++ .../1/p1/MainPage.xaml.cs | 26 +++++++++++ .../2/p1/MainPage.xaml | 19 ++++++++ .../2/p1/MainPage.xaml.cs | 24 ++++++++++ .../Scenario.json | 24 ++++++++++ .../0/p1/MainPage.xaml | 19 ++++++++ .../0/p1/MainPage.xaml.cs | 26 +++++++++++ .../1/p1/MainPage.xaml | 19 ++++++++ .../1/p1/MainPage.xaml.cs | 24 ++++++++++ .../Scenario.json | 26 +++++++++++ .../0/p1/MainPage.xaml | 19 ++++++++ .../0/p1/MainPage.xaml.cs | 26 +++++++++++ .../1/p1/MainPage.xaml | 19 ++++++++ .../1/p1/MainPage.xaml.cs | 26 +++++++++++ .../Scenario.json | 24 ++++++++++ .../0/p1/MainPage.xaml | 4 +- .../0/p1/MainPage.xaml.cs | 24 ++++++++++ .../1/p1/MainPage.xaml | 13 ++++++ .../1/p1/MainPage.xaml.cs | 26 +++++++++++ .../2/p1/MainPage.xaml | 13 ++++++ .../2/p1/MainPage.xaml.cs | 24 ++++++++++ .../Scenario.json | 24 ++++++++++ .../0/p1/MainPage.xaml | 13 ++++++ .../0}/p1/MainPage.xaml.cs | 0 .../1/p1/MainPage.xaml | 13 ++++++ .../1/p1/MainPage.xaml.cs | 24 ++++++++++ .../Scenario.json | 24 ++++++++++ .../0/p1/MainPage.xaml | 13 ++++++ .../0/p1/MainPage.xaml.cs | 24 ++++++++++ .../1/p1/MainPage.xaml | 13 ++++++ .../1/p1/MainPage.xaml.cs | 28 +++++++++++ .../2/p1/MainPage.xaml | 13 ++++++ .../2/p1/MainPage.xaml.cs | 24 ++++++++++ .../Scenario.json | 24 ++++++++++ .../0/p1/MainPage.xaml | 13 ++++++ .../0/p1/MainPage.xaml.cs | 28 +++++++++++ .../1/p1/MainPage.xaml | 13 ++++++ .../1/p1/MainPage.xaml.cs | 24 ++++++++++ .../Scenario.json | 24 ++++++++++ .../0/p1/MainPage.xaml | 13 ++++++ .../0/p1/MainPage.xaml.cs | 26 +++++++++++ .../1/p1/MainPage.xaml | 13 ++++++ .../1/p1/MainPage.xaml.cs | 28 +++++++++++ .../2/p1/MainPage.xaml | 13 ++++++ .../2/p1/MainPage.xaml.cs | 26 +++++++++++ .../Scenario.json | 46 +++++++++++++++++++ .../0/p1/MainPage.xaml | 13 ++++++ .../0/p1/MainPage.xaml.cs | 28 +++++++++++ .../1/p1/MainPage.xaml | 13 ++++++ .../1/p1/MainPage.xaml.cs | 26 +++++++++++ .../Scenario.json | 46 +++++++++++++++++++ .../0/p1/MainPage.xaml | 14 ++++++ .../0/p1/MainPage.xaml.cs | 24 ++++++++++ .../1/p1/MainPage.xaml | 0 .../1/p1/MainPage.xaml.cs | 26 +++++++++++ .../When_Simple_Xaml_xLoad_Add/Scenario.json | 24 ++++++++++ .../0/p1/MainPage.xaml | 14 ++++++ .../0/p1/MainPage.xaml.cs | 24 ++++++++++ .../1/p1/MainPage.xaml | 14 ++++++ .../1/p1/MainPage.xaml.cs | 26 +++++++++++ .../2/p1/MainPage.xaml | 14 ++++++ .../2/p1/MainPage.xaml.cs | 24 ++++++++++ .../Scenario.json | 24 ++++++++++ .../0/p1/MainPage.xaml | 14 ++++++ .../0/p1/MainPage.xaml.cs | 24 ++++++++++ .../1/p1/MainPage.xaml | 14 ++++++ .../1/p1/MainPage.xaml.cs | 26 +++++++++++ .../Scenario.json | 24 ++++++++++ .../0/p1/MainPage.xaml | 14 ++++++ .../0/p1/MainPage.xaml.cs | 24 ++++++++++ .../1/p1/MainPage.xaml | 14 ++++++ .../1/p1/MainPage.xaml.cs | 26 +++++++++++ .../Scenario.json | 24 ++++++++++ .../0/p1/MainPage.xaml | 14 ++++++ .../0/p1/MainPage.xaml.cs | 24 ++++++++++ .../1/p1/MainPage.xaml | 14 ++++++ .../1/p1/MainPage.xaml.cs | 28 +++++++++++ .../Scenario.json | 24 ++++++++++ .../0/p1/MainPage.xaml | 14 ++++++ .../0/p1/MainPage.xaml.cs | 24 ++++++++++ .../1/p1/MainPage.xaml | 14 ++++++ .../1/p1/MainPage.xaml.cs | 28 +++++++++++ .../2/p1/MainPage.xaml | 14 ++++++ .../2/p1/MainPage.xaml.cs | 24 ++++++++++ .../Scenario.json | 24 ++++++++++ .../0/p1/MainPage.xaml | 14 ++++++ .../0/p1/MainPage.xaml.cs | 28 +++++++++++ .../1/p1/MainPage.xaml | 14 ++++++ .../1/p1/MainPage.xaml.cs | 24 ++++++++++ .../Scenario.json | 26 +++++++++++ .../0/p1/MainPage.xaml | 14 ++++++ .../0/p1/MainPage.xaml.cs | 28 +++++++++++ .../1/p1/MainPage.xaml | 14 ++++++ .../1/p1/MainPage.xaml.cs | 26 +++++++++++ .../Scenario.json | 24 ++++++++++ 125 files changed, 2580 insertions(+), 4 deletions(-) create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xBind_Event_Add/0/p1/MainPage.xaml rename src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/{When_Simple_Xaml_Add_xLoad => When_DataTemplate_xBind_Event_Add}/0/p1/MainPage.xaml.cs (100%) create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xBind_Event_Add/1/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xBind_Event_Add/1/p1/MainPage.xaml.cs rename src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/{When_Simple_Xaml_Add_xLoad => When_DataTemplate_xBind_Event_Add}/Scenario.json (100%) create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xBind_Event_Add_Remove/0/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xBind_Event_Add_Remove/0/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xBind_Event_Add_Remove/1/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xBind_Event_Add_Remove/1/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xBind_Event_Add_Remove/2/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xBind_Event_Add_Remove/2/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xBind_Event_Add_Remove/Scenario.json create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xBind_Event_Remove/0/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xBind_Event_Remove/0/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xBind_Event_Remove/1/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xBind_Event_Remove/1/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xBind_Event_Remove/Scenario.json create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xBind_Event_Update/0/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xBind_Event_Update/0/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xBind_Event_Update/1/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xBind_Event_Update/1/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xBind_Event_Update/Scenario.json create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xLoad_xBind_Add/0/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xLoad_xBind_Add/0/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xLoad_xBind_Add/1/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xLoad_xBind_Add/1/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xLoad_xBind_Add/Scenario.json create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xLoad_xBind_Add_Remove/0/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xLoad_xBind_Add_Remove/0/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xLoad_xBind_Add_Remove/1/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xLoad_xBind_Add_Remove/1/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xLoad_xBind_Add_Remove/2/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xLoad_xBind_Add_Remove/2/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xLoad_xBind_Add_Remove/Scenario.json create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xLoad_xBind_Remove/0/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xLoad_xBind_Remove/0/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xLoad_xBind_Remove/1/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xLoad_xBind_Remove/1/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xLoad_xBind_Remove/Scenario.json create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xLoad_xBind_Update/0/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xLoad_xBind_Update/0/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xLoad_xBind_Update/1/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xLoad_xBind_Update/1/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_DataTemplate_xLoad_xBind_Update/Scenario.json rename src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/{When_Simple_Xaml_Add_xLoad => When_Simple_Xaml_Single_xName_Add_Remove}/0/p1/MainPage.xaml (93%) create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_Single_xName_Add_Remove/0/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_Single_xName_Add_Remove/1/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_Single_xName_Add_Remove/1/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_Single_xName_Add_Remove/2/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_Single_xName_Add_Remove/2/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_Single_xName_Add_Remove/Scenario.json create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_Single_xName_Remove/0/p1/MainPage.xaml rename src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/{When_Simple_Xaml_Add_xLoad/1 => When_Simple_Xaml_Single_xName_Remove/0}/p1/MainPage.xaml.cs (100%) create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_Single_xName_Remove/1/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_Single_xName_Remove/1/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_Single_xName_Remove/Scenario.json create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xBind_Event_Add_Remove/0/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xBind_Event_Add_Remove/0/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xBind_Event_Add_Remove/1/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xBind_Event_Add_Remove/1/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xBind_Event_Add_Remove/2/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xBind_Event_Add_Remove/2/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xBind_Event_Add_Remove/Scenario.json create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xBind_Event_Remove/0/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xBind_Event_Remove/0/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xBind_Event_Remove/1/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xBind_Event_Remove/1/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xBind_Event_Remove/Scenario.json create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xBind_Function_Property_Add_Remove/0/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xBind_Function_Property_Add_Remove/0/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xBind_Function_Property_Add_Remove/1/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xBind_Function_Property_Add_Remove/1/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xBind_Function_Property_Add_Remove/2/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xBind_Function_Property_Add_Remove/2/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xBind_Function_Property_Add_Remove/Scenario.json create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xBind_Function_Property_Remove/0/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xBind_Function_Property_Remove/0/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xBind_Function_Property_Remove/1/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xBind_Function_Property_Remove/1/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xBind_Function_Property_Remove/Scenario.json create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_Add/0/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_Add/0/p1/MainPage.xaml.cs rename src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/{When_Simple_Xaml_Add_xLoad => When_Simple_Xaml_xLoad_Add}/1/p1/MainPage.xaml (100%) create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_Add/1/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_Add/Scenario.json create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_Add_Remove/0/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_Add_Remove/0/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_Add_Remove/1/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_Add_Remove/1/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_Add_Remove/2/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_Add_Remove/2/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_Add_Remove/Scenario.json create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_Remove/0/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_Remove/0/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_Remove/1/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_Remove/1/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_Remove/Scenario.json create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_Update/0/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_Update/0/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_Update/1/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_Update/1/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_Update/Scenario.json create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_xBind_Add/0/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_xBind_Add/0/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_xBind_Add/1/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_xBind_Add/1/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_xBind_Add/Scenario.json create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_xBind_Add_Remove/0/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_xBind_Add_Remove/0/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_xBind_Add_Remove/1/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_xBind_Add_Remove/1/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_xBind_Add_Remove/2/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_xBind_Add_Remove/2/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_xBind_Add_Remove/Scenario.json create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_xBind_Remove/0/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_xBind_Remove/0/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_xBind_Remove/1/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_xBind_Remove/1/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_xBind_Remove/Scenario.json create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_xBind_Update/0/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_xBind_Update/0/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_xBind_Update/1/p1/MainPage.xaml create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_xBind_Update/1/p1/MainPage.xaml.cs create mode 100644 src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Scenarios/When_Simple_Xaml_xLoad_xBind_Update/Scenario.json 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 @@ + + + + +