1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 17:43:21 +08:00

Setup tests

This commit is contained in:
Dean Herbert 2020-10-26 21:27:05 +09:00
parent 9bb2cff8a5
commit 67f6d52e35

View File

@ -21,7 +21,7 @@ namespace osu.Game.Tests.Visual.Gameplay
private OsuGameBase game { get; set; }
[Test]
public void TestSpectating()
public void TestBasicSpectatingFlow()
{
AddStep("add streaming client", () => Add(testSpectatorStreamingClient));
AddStep("load screen", () => LoadScreen(new Spectator(testSpectatorStreamingClient.StreamingUser)));
@ -29,6 +29,30 @@ namespace osu.Game.Tests.Visual.Gameplay
AddStep("send frames", () => testSpectatorStreamingClient.SendFrames());
}
[Test]
public void TestSpectatingDuringGameplay()
{
// should seek immediately to available frames
}
[Test]
public void TestHostStartsPlayingWhileAlreadyWatching()
{
// should restart either immediately or after running out of frames
}
[Test]
public void TestHostFails()
{
// should replay until running out of frames then fail
}
[Test]
public void TestStopWatchingDuringPlay()
{
// should immediately exit and unbind from streaming client
}
internal class TestSpectatorStreamingClient : SpectatorStreamingClient
{
[Resolved]