public void Load(SongInfo songInfo, SelectSongScrollView parent) { if (!isDirectory && songInfo.Equals(this.songInfo)) { return; } this.parent = parent; this.songInfo = songInfo; isDirectory = false; UpdateDisplay(); }
public void TestEqualityOfSongInfo() { SongInfo s1 = new SongInfo("a", "b", "c", new TimeSpan(1), 2); SongInfo s2 = new SongInfo("a", "b", "c", new TimeSpan(1), 2); Assert.IsTrue(s1.Equals(s2)); }