Skip to content

Commit 7aed7c4

Browse files
committed
Add a test case 'TestAliveAfterStop'
1 parent 343eff3 commit 7aed7c4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

osu.Framework.Tests/Audio/SampleBassTest.cs

+15
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,20 @@ public void TestPlayingUpdatedAfterInlineStop()
115115
bass.RunOnAudioThread(() => channel.Stop());
116116
Assert.That(channel.Playing, Is.False);
117117
}
118+
119+
[Test]
120+
public void TestAliveAfterStop()
121+
{
122+
channel = sample.Play();
123+
bass.Update();
124+
125+
Assert.That(channel.Playing, Is.True);
126+
127+
channel.Stop();
128+
bass.Update();
129+
130+
Assert.That(channel.Playing, Is.False);
131+
Assert.That(channel.IsAlive, Is.True);
132+
}
118133
}
119134
}

0 commit comments

Comments
 (0)