mirror of https://github.com/ppy/osu
Fix regressions
This commit is contained in:
parent
cd722e4abb
commit
ed152c08ac
|
@ -28,7 +28,7 @@ public void TestDecodeMetadata()
|
|||
Assert.AreEqual("Soleily", meta.Artist);
|
||||
Assert.AreEqual("Soleily", meta.ArtistUnicode);
|
||||
Assert.AreEqual("03. Renatus - Soleily 192kbps.mp3", meta.AudioFile);
|
||||
Assert.AreEqual("Gamu", meta.Author);
|
||||
Assert.AreEqual("Gamu", meta.AuthorString);
|
||||
Assert.AreEqual("machinetop_background.jpg", meta.BackgroundFile);
|
||||
Assert.AreEqual(164471, meta.PreviewTime);
|
||||
Assert.AreEqual(string.Empty, meta.Source);
|
||||
|
@ -143,4 +143,4 @@ public void TestDecodeHitObjects()
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -56,7 +56,7 @@ public void TestReadMetadata()
|
|||
Assert.AreEqual("Soleily", meta.Artist);
|
||||
Assert.AreEqual("Soleily", meta.ArtistUnicode);
|
||||
Assert.AreEqual("03. Renatus - Soleily 192kbps.mp3", meta.AudioFile);
|
||||
Assert.AreEqual("Deif", meta.Author);
|
||||
Assert.AreEqual("Deif", meta.AuthorString);
|
||||
Assert.AreEqual("machinetop_background.jpg", meta.BackgroundFile);
|
||||
Assert.AreEqual(164471, meta.PreviewTime);
|
||||
Assert.AreEqual(string.Empty, meta.Source);
|
||||
|
|
|
@ -27,6 +27,7 @@ public class BeatmapMetadata
|
|||
[Column("Author")]
|
||||
public string AuthorString
|
||||
{
|
||||
get { return Author?.Username; }
|
||||
set { Author = new User { Username = value }; }
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue