1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:27:29 +08:00

Apply suggestions from code review

Co-Authored-By: Salman Ahmed <slmanarendo1950@gmail.com>
This commit is contained in:
Dean Herbert 2019-09-13 21:55:45 +09:00 committed by GitHub
parent a7c59098ce
commit d385c35955
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,7 @@ namespace osu.Game.Tests.Visual
get
{
if (UseOnlineAPI)
throw new Exception("Using the OsuTestScene dummy API is not supported when UseOnlineAPI is true");
throw new Exception($"Using the {nameof(OsuTestScene)} dummy API is not supported when {nameof(UseOnlineAPI)} is true");
return dummyAPI;
}
@ -64,7 +64,7 @@ namespace osu.Game.Tests.Visual
/// <summary>
/// Whether this test scene requires real-world API access.
/// If true, this will bypass the local <see cref="dummyAPI"/> and use the <see cref="OsuGameBase"/> provided one.
/// If true, this will bypass the local <see cref="DummyAPIAccess"/> and use the <see cref="OsuGameBase"/> provided one.
/// </summary>
protected virtual bool UseOnlineAPI => false;