Move RoomStatus to a class instead of enum

This commit is contained in:
DrabWeb
2017-05-22 21:13:57 -03:00
parent cf0e7887b5
commit 9798117d53
5 changed files with 37 additions and 22 deletions

View File

@ -37,17 +37,17 @@ namespace osu.Desktop.VisualTests.Tests
first.Room.Name.Value = @"Great Room Right Here";
first.Room.Host.Value = new User { Username = @"Naeferith", Id = 9492835, Country = new Country { FlagName = @"FR" }};
first.Room.Status.Value = RoomStatus.Open;
first.Room.Status.Value = new RoomStatusOpen();
first.Room.Beatmap.Value = new BeatmapMetadata { Title = @"Seiryu", Artist = @"Critical Crystal" };
second.Room.Name.Value = @"Relax It's The Weekend";
second.Room.Host.Value = new User { Username = @"peppy", Id = 2, Country = new Country { FlagName = @"AU" }};
second.Room.Status.Value = RoomStatus.Playing;
second.Room.Status.Value = new RoomStatusPlaying();
second.Room.Beatmap.Value = new BeatmapMetadata { Title = @"ZAQ", Artist = @"Serendipity" };
AddStep(@"change state", () =>
{
first.Room.Status.Value = RoomStatus.Playing;
first.Room.Status.Value = new RoomStatusPlaying();
});
AddStep(@"change name", () =>
@ -67,7 +67,7 @@ namespace osu.Desktop.VisualTests.Tests
AddStep(@"change state", () =>
{
first.Room.Status.Value = RoomStatus.Open;
first.Room.Status.Value = new RoomStatusOpen();
});
}
}