Skip to content

Commit c23e9dd

Browse files
committed
Trying to fix unit test failuries
1 parent 42c6d27 commit c23e9dd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

UnitTests/Configuration/ConfigurationMangerTests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ public void Illustrate_DeepMemberWiseCopy_Breaks_Dictionary ()
181181
[Fact]
182182
public void Load_Raises_Updated ()
183183
{
184+
ThrowOnJsonErrors = true;
184185
Locations = ConfigLocations.All;
185186
Reset ();
186187
Assert.Equal (Key.Esc, (((Key)Settings! ["Application.QuitKey"].PropertyValue)!).KeyCode);
@@ -194,8 +195,8 @@ void ConfigurationManager_Updated (object? sender, ConfigurationManagerEventArgs
194195
}
195196

196197
// Act
197-
// Do NOT reset
198-
Load (false);
198+
// Reset to cause load to raise event
199+
Load (true);
199200

200201
// assert
201202
Assert.True (fired);

UnitTests/View/Draw/AllViewsDrawTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ public class AllViewsDrawTests (ITestOutputHelper _output) : TestsAllViews
88
[MemberData (nameof (AllViewTypes))]
99
public void AllViews_Draw_Does_Not_Layout (Type viewType)
1010
{
11+
Application.ResetState (true);
12+
1113
var view = (View)CreateInstanceIfNotGeneric (viewType);
1214

1315
if (view == null)

0 commit comments

Comments
 (0)