Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit a5cd0b2

Browse files
committed
Add ThemedDialogDefaultStylesKey while testing TwoFactorInputTests
1 parent fd8b814 commit a5cd0b2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/GitHub.UI.UnitTests/TwoFactorInputTests.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@ public class TwoFactorInputTests
1010
{
1111
public class TheTextProperty : TestBaseClass
1212
{
13+
[SetUp]
14+
public void SetUp()
15+
{
16+
var app = Application.Current ?? new Application();
17+
app.Resources.Add("ThemedDialogDefaultStylesKey", new ResourceDictionary());
18+
}
19+
20+
[TearDown]
21+
public void TearDown()
22+
{
23+
Application.Current.Resources.Remove("ThemedDialogDefaultStylesKey");
24+
}
1325

1426
[Test, Apartment(ApartmentState.STA)]
1527
public void SetsTextBoxesToIndividualCharacters()

0 commit comments

Comments
 (0)