mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 02:02:53 +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]
|
[Test]
|
||||||
public void TestReadBeatmaps()
|
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);
|
var reader = new OszArchiveReader(osz);
|
||||||
string[] expected =
|
string[] expected =
|
||||||
@ -46,7 +46,7 @@ namespace osu.Game.Tests.Beatmaps.IO
|
|||||||
[Test]
|
[Test]
|
||||||
public void TestReadMetadata()
|
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 reader = new OszArchiveReader(osz);
|
||||||
var meta = reader.ReadMetadata();
|
var meta = reader.ReadMetadata();
|
||||||
@ -66,7 +66,7 @@ namespace osu.Game.Tests.Beatmaps.IO
|
|||||||
[Test]
|
[Test]
|
||||||
public void TestReadFile()
|
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);
|
var reader = new OszArchiveReader(osz);
|
||||||
using (var stream = new StreamReader(
|
using (var stream = new StreamReader(
|
||||||
|
@ -9,7 +9,9 @@ namespace osu.Game.Tests.Resources
|
|||||||
public static Stream OpenResource(string name)
|
public static Stream OpenResource(string name)
|
||||||
{
|
{
|
||||||
return Assembly.GetExecutingAssembly().GetManifestResourceStream(
|
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>
|
<Project>{0D3FBF8A-7464-4CF7-8C90-3E7886DF2D4D}</Project>
|
||||||
<Name>osu.Game</Name>
|
<Name>osu.Game</Name>
|
||||||
</ProjectReference>
|
</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>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Folder Include="Resources\" />
|
<Folder Include="Resources\" />
|
||||||
@ -59,7 +63,6 @@
|
|||||||
<Compile Include="Beatmaps\Formats\OsuLegacyDecoderTest.cs" />
|
<Compile Include="Beatmaps\Formats\OsuLegacyDecoderTest.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<EmbeddedResource Include="Resources\241526 Soleily - Renatus.osz" />
|
|
||||||
<EmbeddedResource Include="Resources\Soleily - Renatus %28Gamu%29 [Insane].osu" />
|
<EmbeddedResource Include="Resources\Soleily - Renatus %28Gamu%29 [Insane].osu" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||||
|
Loading…
Reference in New Issue
Block a user