Implement FindProvider and AllSources properly on all test ISkinSources

This commit is contained in:
Salman Ahmed
2021-06-22 12:02:21 +03:00
parent c1284940e1
commit 31cbb36a64
5 changed files with 10 additions and 9 deletions

View File

@ -159,8 +159,9 @@ namespace osu.Game.Tests.Beatmaps
remove { }
}
public ISkin FindProvider(Func<ISkin, bool> lookupFunction) => null;
public IEnumerable<ISkin> AllSources => Enumerable.Empty<ISkin>();
public ISkin FindProvider(Func<ISkin, bool> lookupFunction) => lookupFunction(this) ? this : null;
public IEnumerable<ISkin> AllSources => new[] { this };
}
}
}