mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 20:33:11 +08:00
Setup tests
This commit is contained in:
parent
9bb2cff8a5
commit
67f6d52e35
@ -21,7 +21,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
private OsuGameBase game { get; set; }
|
private OsuGameBase game { get; set; }
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TestSpectating()
|
public void TestBasicSpectatingFlow()
|
||||||
{
|
{
|
||||||
AddStep("add streaming client", () => Add(testSpectatorStreamingClient));
|
AddStep("add streaming client", () => Add(testSpectatorStreamingClient));
|
||||||
AddStep("load screen", () => LoadScreen(new Spectator(testSpectatorStreamingClient.StreamingUser)));
|
AddStep("load screen", () => LoadScreen(new Spectator(testSpectatorStreamingClient.StreamingUser)));
|
||||||
@ -29,6 +29,30 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
AddStep("send frames", () => testSpectatorStreamingClient.SendFrames());
|
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
|
internal class TestSpectatorStreamingClient : SpectatorStreamingClient
|
||||||
{
|
{
|
||||||
[Resolved]
|
[Resolved]
|
||||||
|
Loading…
Reference in New Issue
Block a user