Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use known categories instead of string literals #442

Merged
merged 3 commits into from
Mar 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Microsoft.Maui.DeviceTests
{
[Category("ButtonHandler")]
[Category(TestCategory.Button)]
public partial class ButtonHandlerTests : HandlerTestBase<ButtonHandler>
{
public ButtonHandlerTests(HandlerTestFixture fixture) : base(fixture)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Microsoft.Maui.DeviceTests
{
[Category("EntryHandler")]
[Category(TestCategory.Entry)]
public partial class EntryHandlerTests : HandlerTestBase<EntryHandler>
{
public EntryHandlerTests(HandlerTestFixture fixture) : base(fixture)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Microsoft.Maui.DeviceTests
{
[Category("LabelHandler")]
[Category(TestCategory.Label)]
public partial class LabelHandlerTests : HandlerTestBase<LabelHandler>
{
public LabelHandlerTests(HandlerTestFixture fixture) : base(fixture)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Microsoft.Maui.DeviceTests.Handlers.Layout
{
[Category("LayoutHandler")]
[Category(TestCategory.Layout)]
public partial class LayoutHandlerTests : HandlerTestBase<LayoutHandler>
{
public LayoutHandlerTests(HandlerTestFixture fixture) : base(fixture)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace Microsoft.Maui.DeviceTests
{
[Category("SliderHandler")]
[Category(TestCategory.Slider)]
public partial class SliderHandlerTests : HandlerTestBase<SliderHandler>
{
public SliderHandlerTests(HandlerTestFixture fixture) : base(fixture)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Microsoft.Maui.DeviceTests
{
[Category("SwitchHandler")]
[Category(TestCategory.Switch)]
public partial class SwitchHandlerTests : HandlerTestBase<SwitchHandler>
{
public SwitchHandlerTests(HandlerTestFixture fixture) : base(fixture)
Expand Down
4 changes: 4 additions & 0 deletions src/Core/tests/DeviceTests/TestCategory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
{
public static class TestCategory
{
public const string Button = "Button";
public const string Entry = "Entry";
public const string Label = "Label";
public const string Slider = "Slider";
public const string Switch = "Switch";
public const string Layout = "Layout";
}
}