Skip to content

Commit e65404d

Browse files
committed
Save point
1 parent d80934c commit e65404d

File tree

7 files changed

+144
-151
lines changed

7 files changed

+144
-151
lines changed

tests/MaterialDesignThemes.Wpf.Tests/CalendarFormatInfoTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public async Task TestFromCultureInfo(string cultureName, string yearMonth, stri
3535
await Assert.That(result.ComponentThreePattern).IsEqualTo(componentThree);
3636
}
3737

38-
[Theory]
38+
[Test]
3939
[Arguments("", "ddd", "", true)]
4040
[Arguments("ddd", "ddd", "", true)]
4141
[Arguments("dddd", "ddd", "", true)]

tests/MaterialDesignThemes.Wpf.Tests/DialogHostTests.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
using System.ComponentModel;
22
using System.Threading;
33
using System.Windows.Threading;
4-
using TUnit.Core;
5-
using TUnit.Assertions;
6-
using TUnit.Assertions.Extensions;
7-
using System.Threading.Tasks;
84

95
namespace MaterialDesignThemes.Wpf.Tests;
106

@@ -33,7 +29,7 @@ public async Task CanOpenAndCloseDialogWithIsOpen()
3329
_dialogHost.IsOpen = false;
3430

3531
await Assert.That(_dialogHost.IsOpen).IsFalse();
36-
Assert.Null(_dialogHost.CurrentSession);
32+
await Assert.That(_dialogHost.CurrentSession).IsNull();
3733
Assert.True(session?.IsEnded);
3834
}
3935

@@ -142,7 +138,7 @@ public async Task WhenMultipleDialogHostsHaveTheSameIdentifierItThrows()
142138
otherDialogHost.RaiseEvent(new RoutedEventArgs(FrameworkElement.UnloadedEvent));
143139

144140

145-
await Assert.That(especially where multiple Windows are a concern.", ex.Message).IsEqualTo("Multiple viable DialogHosts. Specify a unique Identifier on each DialogHost);
141+
await Assert.That(ex.Message).IsEqualTo("Multiple viable DialogHosts. Specify a unique Identifier on each DialogHost especially where multiple Windows are a concern.");
146142
}
147143

148144
[Test, STAThreadExecutor]

0 commit comments

Comments
 (0)