From ecece2bc29f0874ccd5be1d720f37f3140f7949d Mon Sep 17 00:00:00 2001 From: DrabWeb Date: Tue, 30 May 2017 22:28:15 -0300 Subject: [PATCH] "Use" object initializers in visual test --- osu.Desktop.VisualTests/Tests/TestCaseRoomInspector.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osu.Desktop.VisualTests/Tests/TestCaseRoomInspector.cs b/osu.Desktop.VisualTests/Tests/TestCaseRoomInspector.cs index 7ec78cd136..0e3ed7c1a9 100644 --- a/osu.Desktop.VisualTests/Tests/TestCaseRoomInspector.cs +++ b/osu.Desktop.VisualTests/Tests/TestCaseRoomInspector.cs @@ -21,7 +21,7 @@ namespace osu.Desktop.VisualTests.Tests { base.Reset(); - var room = new Room(); + var room = new Room { }; room.Name.Value = @"My Awesome Room"; room.Host.Value = new User { Username = @"flyte", Id = 3103765, Country = new Country { FlagName = @"JP" }}; room.Status.Value = new RoomStatusOpen(); @@ -71,7 +71,7 @@ namespace osu.Desktop.VisualTests.Tests AddStep(@"change room", () => { - var newRoom = new Room(); + var newRoom = new Room { }; newRoom.Name.Value = @"My New, Better Than Ever Room"; newRoom.Host.Value = new User { Username = @"Angelsim", Id = 1777162, Country = new Country { FlagName = @"KR" }}; newRoom.Status.Value = new RoomStatusOpen();