mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 12:35:34 +08:00
Add extra legacy skin parsing tests
This commit is contained in:
parent
f58ca82398
commit
343af28ed5
@ -1,5 +1,6 @@
|
||||
[General]
|
||||
Name: test skin
|
||||
TestLookup: TestValue
|
||||
|
||||
[Colours]
|
||||
Combo1 : 142,199,255
|
||||
|
@ -41,5 +41,20 @@ namespace osu.Game.Tests.Skins
|
||||
Assert.AreEqual(expectedColors[i], comboColors[i]);
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestDecodeGeneral()
|
||||
{
|
||||
var decoder = new LegacySkinDecoder();
|
||||
|
||||
using (var resStream = TestResources.OpenResource("skin.ini"))
|
||||
using (var stream = new StreamReader(resStream))
|
||||
{
|
||||
var config = decoder.Decode(stream);
|
||||
|
||||
Assert.AreEqual("test skin", config.SkinInfo.Name);
|
||||
Assert.AreEqual("TestValue", config.ConfigDictionary["TestLookup"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user