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:
parent
a7c59098ce
commit
d385c35955
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user