osu/osu.Game.Tests/Localisation/BeatmapMetadataRomanisation...

32 lines
894 B
C#
Raw Normal View History

2021-07-04 14:09:23 +00:00
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Game.Beatmaps;
namespace osu.Game.Tests.Localisation
{
[TestFixture]
public class BeatmapMetadataRomanisationTest
{
[Test]
public void TestNoUnicode()
{
var beatmap = new Beatmap
{
BeatmapInfo = new BeatmapInfo
{
Metadata = new BeatmapMetadata
{
Artist = "Artist",
Title = "Romanised title"
}
}
};
var romanisableString = beatmap.Metadata.ToRomanisableString();
Assert.AreEqual(romanisableString.Romanised, romanisableString.Original);
}
}
}