SEBWIN-716, #323: Fixed unit test failing due to runtime window change.

This commit is contained in:
Damian Büchel 2023-07-25 15:11:55 +02:00
parent 0769cf6b4b
commit c498ef9af1

View file

@ -475,7 +475,7 @@ namespace SafeExamBrowser.Runtime.UnitTests
sessionSequence.Raise(o => o.ProgressChanged += null, args); sessionSequence.Raise(o => o.ProgressChanged += null, args);
runtimeWindow.Verify(s => s.SetValue(It.Is<int>(i => i == args.CurrentValue)), Times.Once); runtimeWindow.Verify(s => s.SetValue(It.Is<int>(i => i == args.CurrentValue)), Times.Once);
runtimeWindow.Verify(s => s.SetIndeterminate(), Times.Once); runtimeWindow.Verify(s => s.SetIndeterminate(), Times.Exactly(2));
runtimeWindow.Verify(s => s.SetMaxValue(It.Is<int>(i => i == args.MaxValue)), Times.Once); runtimeWindow.Verify(s => s.SetMaxValue(It.Is<int>(i => i == args.MaxValue)), Times.Once);
runtimeWindow.Verify(s => s.Progress(), Times.Once); runtimeWindow.Verify(s => s.Progress(), Times.Once);
runtimeWindow.Verify(s => s.Regress(), Times.Once); runtimeWindow.Verify(s => s.Regress(), Times.Once);