Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
insomniachi committed Oct 9, 2022
1 parent 7e19b2b commit fafd5b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Totoro.Core.Tests/ViewModels/WatchViewModelTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ public void WatchViewModel_SavesPositionWhenWatchedOver10Seconds(double time)
vm.OnNavigatedTo(new Dictionary<string, object> { ["Anime"] = animeModel }).Wait();

// act
vmBuilder.MediaPlayer.PlayingSubject.OnNext(Unit.Default);
vmBuilder.MediaPlayer.PositionChangedSubject.OnNext(TimeSpan.FromSeconds(time));

var count = time > 10 ? Times.Once() : Times.Never();
Expand Down Expand Up @@ -431,7 +432,7 @@ public void WatchViewModel_HasSearchBoxWhenNavigatedWithoutAnime()
public void WatchViewModel_HidesSearchBoxWhenNavigatedWithAnime()
{
// arrange
AnimeModel animeModel = new()
FullAnimeModel animeModel = new()
{
Id = 12189,
Title = "Hyouka",
Expand Down

0 comments on commit fafd5b1

Please sign in to comment.