Beispiel #1
0
        public void TestRomanisationNoUnicode()
        {
            var metadata = new BeatmapMetadata
            {
                Artist = "Romanised Artist",
                Title  = "Romanised title"
            };
            var romanisableString = metadata.ToRomanisableString();

            Assert.AreEqual(romanisableString.Romanised, romanisableString.Original);
        }
Beispiel #2
0
        public void TestRomanisation()
        {
            var metadata = new BeatmapMetadata
            {
                Artist        = "Romanised Artist",
                ArtistUnicode = "Unicode Artist",
                Title         = "Romanised title",
                TitleUnicode  = "Unicode Title"
            };
            var romanisableString = metadata.ToRomanisableString();

            Assert.AreEqual(metadata.ToString(), romanisableString.Romanised);
            Assert.AreEqual($"{metadata.ArtistUnicode} - {metadata.TitleUnicode}", romanisableString.Original);
        }