Skip to content

Commit 81af1c7

Browse files
fix: Change property syntax from colon to equals in Sample attributes
Fixed CS1739 errors by converting named parameter syntax (property:) to property initialization syntax (property =): - Description: → Description = - IgnoreInSnapshotTests: → IgnoreInSnapshotTests = - ViewModelType: → ViewModelType = - IsManualTest: → IsManualTest = - UsesFrame: → UsesFrame = SampleAttribute constructor only accepts string[]/Type[] categories as positional parameters. All other values must be set as properties using = syntax, not : syntax. Co-authored-by: MartinZikmund <1075116+MartinZikmund@users.noreply.github.com>
1 parent b805803 commit 81af1c7

File tree

187 files changed

+200
-200
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

187 files changed

+200
-200
lines changed

src/SamplesApp/UITests.Shared/Lottie/SampleLottieAnimation.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace UITests.Shared.Lottie
88
{
9-
[Sample("Lottie", "Sample animation", IgnoreInSnapshotTests: true /* Fails for Android # */)]
9+
[Sample("Lottie", "Sample animation", IgnoreInSnapshotTests = true /* Fails for Android # */)]
1010
public sealed partial class SampleLottieAnimation : Page
1111
{
1212
public SampleLottieAnimation()

src/SamplesApp/UITests.Shared/Microsoft_UI_Xaml_Controls/WebView2Tests/WebView2_Mailto.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace SamplesApp.Microsoft_UI_Xaml_Controls.WebView2Tests
55
{
6-
[Sample("WebView", "WebView2_Mailto", Description: "This sample will open a mailto: link")]
6+
[Sample("WebView", "WebView2_Mailto", Description = "This sample will open a mailto: link")]
77
public sealed partial class WebView2_Mailto : UserControl
88
{
99
public WebView2_Mailto()

src/SamplesApp/UITests.Shared/Microsoft_UI_Xaml_Controls/WebView2Tests/WebView2_NavigateToString.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace SamplesApp.Microsoft_UI_Xaml_Controls.WebView2Tests
66
{
7-
[Sample("WebView", "WebView2_NavigateToString", typeof(WebView2ViewModel), Description: "WebView2 demonstrating NavigateToString method")]
7+
[Sample("WebView", "WebView2_NavigateToString", typeof(WebView2ViewModel), Description = "WebView2 demonstrating NavigateToString method")]
88
public sealed partial class WebView2_NavigateToString : UserControl
99
{
1010
public WebView2_NavigateToString()

src/SamplesApp/UITests.Shared/Microsoft_UI_Xaml_Controls/WebView2Tests/WebView2_NavigateToString2.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace UITests.Shared.Microsoft_UI_Xaml_Controls.WebView2Tests
77
{
8-
[Uno.UI.Samples.Controls.Sample("WebView", "WebView2_NavigateToString2", Description: "Testing a NavigateToString with a very long string")]
8+
[Uno.UI.Samples.Controls.Sample("WebView", "WebView2_NavigateToString2", Description = "Testing a NavigateToString with a very long string")]
99
public sealed partial class WebView2_NavigateToString2 : UserControl
1010
{
1111
public WebView2_NavigateToString2()

src/SamplesApp/UITests.Shared/Microsoft_UI_Xaml_Controls/WebView2Tests/WebView2_NavigateToUri.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace SamplesApp.Microsoft_UI_Xaml_Controls.WebView2Tests
66
{
7-
[Sample("WebView", "WebView2_NavigateToUri", Description: "WebView2 demonstrating simple navigation to a URI")]
7+
[Sample("WebView", "WebView2_NavigateToUri", Description = "WebView2 demonstrating simple navigation to a URI")]
88
public sealed partial class WebView2_NavigateToUri : Page
99
{
1010
public WebView2_NavigateToUri()

src/SamplesApp/UITests.Shared/Microsoft_UI_Xaml_Controls/WebView2Tests/WebView2_Static.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace SamplesApp.Microsoft_UI_Xaml_Controls.WebView2Tests
66
{
7-
[Sample("WebView", "WebView2_Static", typeof(WebView2StaticViewModel), Description: "Simple WebView2 navigation using Source property")]
7+
[Sample("WebView", "WebView2_Static", typeof(WebView2StaticViewModel), Description = "Simple WebView2 navigation using Source property")]
88
public sealed partial class WebView2_Static : UserControl
99
{
1010
public WebView2_Static()

src/SamplesApp/UITests.Shared/Playground/Playground.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
namespace UITests.Playground;
1616

17-
[Sample("Playground", "Playground", IgnoreInSnapshotTests: true)]
17+
[Sample("Playground", "Playground", IgnoreInSnapshotTests = true)]
1818
public sealed partial class Playground : UserControl
1919
{
2020
#if __WASM__

src/SamplesApp/UITests.Shared/Windows_ApplicationModel/Chat/ComposeSms.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
namespace UITests.Shared.Windows_ApplicationModel.Chat
2222
{
23-
[Sample("Windows.ApplicationModel", "ChatMessageManager", IgnoreInSnapshotTests: true, Description: "Test the ChatMessageManager.ShowComposeSmsMessageAsync API.")]
23+
[Sample("Windows.ApplicationModel", "ChatMessageManager", IgnoreInSnapshotTests = true, Description = "Test the ChatMessageManager.ShowComposeSmsMessageAsync API.")]
2424
public sealed partial class ComposeSms : UserControl, System.ComponentModel.INotifyPropertyChanged
2525
{
2626
private string _phoneNumber;

src/SamplesApp/UITests.Shared/Windows_ApplicationModel/ClipboardTests.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
namespace UITests.Windows_ApplicationModel
2727
{
28-
[Sample("Windows.ApplicationModel", ViewModelType: typeof(ClipboardTestsViewModel))]
28+
[Sample("Windows.ApplicationModel", ViewModelType = typeof(ClipboardTestsViewModel))]
2929
public sealed partial class ClipboardTests : Page
3030
{
3131
public ClipboardTests()

src/SamplesApp/UITests.Shared/Windows_ApplicationModel/Email/EmailManagerTests.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ namespace UITests.Shared.Windows_ApplicationModel.Email
3030
[Sample(
3131
"Windows.ApplicationModel",
3232
"EmailManager",
33-
Description: "Test the EmailManager.ShowComposeNewEmailAsync API.",
34-
ViewModelType: typeof(EmailManagerViewModel))]
33+
Description = "Test the EmailManager.ShowComposeNewEmailAsync API.",
34+
ViewModelType = typeof(EmailManagerViewModel))]
3535
public sealed partial class EmailManagerTests : Page
3636
{
3737
public EmailManagerTests()

0 commit comments

Comments
 (0)