Skip to content

Commit

Permalink
Add a test case 'TestAliveAfterStop'
Browse files Browse the repository at this point in the history
  • Loading branch information
hwsmm committed Oct 25, 2024
1 parent 343eff3 commit 7aed7c4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions osu.Framework.Tests/Audio/SampleBassTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,20 @@ public void TestPlayingUpdatedAfterInlineStop()
bass.RunOnAudioThread(() => channel.Stop());
Assert.That(channel.Playing, Is.False);
}

[Test]
public void TestAliveAfterStop()
{
channel = sample.Play();
bass.Update();

Assert.That(channel.Playing, Is.True);

channel.Stop();
bass.Update();

Assert.That(channel.Playing, Is.False);
Assert.That(channel.IsAlive, Is.True);
}
}
}

0 comments on commit 7aed7c4

Please sign in to comment.