mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 12:53:11 +08:00
Moved test osz file into osu-resources
This commit is contained in:
parent
ddac0e8c8f
commit
2f8fbee364
@ -1 +1 @@
|
||||
Subproject commit 6d9bbe6c838e4b89b69d5ad49b37b434aa62281e
|
||||
Subproject commit 0505cf0d3b317667dbc95346f57b67fdbcdb4dee
|
@ -19,7 +19,7 @@ namespace osu.Game.Tests.Beatmaps.IO
|
||||
[Test]
|
||||
public void TestReadBeatmaps()
|
||||
{
|
||||
using (var osz = Resource.OpenResource("241526 Soleily - Renatus.osz"))
|
||||
using (var osz = Resource.OpenResource("Beatmaps.241526 Soleily - Renatus.osz"))
|
||||
{
|
||||
var reader = new OszArchiveReader(osz);
|
||||
string[] expected =
|
||||
@ -46,7 +46,7 @@ namespace osu.Game.Tests.Beatmaps.IO
|
||||
[Test]
|
||||
public void TestReadMetadata()
|
||||
{
|
||||
using (var osz = Resource.OpenResource("241526 Soleily - Renatus.osz"))
|
||||
using (var osz = Resource.OpenResource("Beatmaps.241526 Soleily - Renatus.osz"))
|
||||
{
|
||||
var reader = new OszArchiveReader(osz);
|
||||
var meta = reader.ReadMetadata();
|
||||
@ -66,7 +66,7 @@ namespace osu.Game.Tests.Beatmaps.IO
|
||||
[Test]
|
||||
public void TestReadFile()
|
||||
{
|
||||
using (var osz = Resource.OpenResource("241526 Soleily - Renatus.osz"))
|
||||
using (var osz = Resource.OpenResource("Beatmaps.241526 Soleily - Renatus.osz"))
|
||||
{
|
||||
var reader = new OszArchiveReader(osz);
|
||||
using (var stream = new StreamReader(
|
||||
|
@ -9,7 +9,9 @@ namespace osu.Game.Tests.Resources
|
||||
public static Stream OpenResource(string name)
|
||||
{
|
||||
return Assembly.GetExecutingAssembly().GetManifestResourceStream(
|
||||
$@"osu.Game.Tests.Resources.{name}");
|
||||
$@"osu.Game.Tests.Resources.{name}") ??
|
||||
Assembly.LoadFrom("osu.Game.Resources.dll").GetManifestResourceStream(
|
||||
$@"osu.Game.Resources.{name}");
|
||||
}
|
||||
}
|
||||
}
|
@ -46,6 +46,10 @@
|
||||
<Project>{0D3FBF8A-7464-4CF7-8C90-3E7886DF2D4D}</Project>
|
||||
<Name>osu.Game</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\osu-resources\osu.Game.Resources\osu.Game.Resources.csproj">
|
||||
<Project>{D9A367C9-4C1A-489F-9B05-A0CEA2B53B58}</Project>
|
||||
<Name>osu.Game.Resources</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Resources\" />
|
||||
@ -59,7 +63,6 @@
|
||||
<Compile Include="Beatmaps\Formats\OsuLegacyDecoderTest.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Resources\241526 Soleily - Renatus.osz" />
|
||||
<EmbeddedResource Include="Resources\Soleily - Renatus %28Gamu%29 [Insane].osu" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
|
Loading…
Reference in New Issue
Block a user