public void LyricEvent() { var ticks = 29470u; var lyric = "歌詞です"; var x = new LyricEvent(ticks, lyric); var y = ReDeserialize(x); Assert.That(x.Ticks == y.Ticks); Assert.That(x.lyric == y.lyric); }
/// <summary> /// Determines whether the specified event is equal to the current one. /// </summary> /// <param name="lyricEvent">The event to compare with the current one.</param> /// <param name="respectDeltaTime">If true the <see cref="MidiEvent.DeltaTime"/> will be taken into an account /// while comparing events; if false - delta-times will be ignored.</param> /// <returns>true if the specified event is equal to the current one; otherwise, false.</returns> public bool Equals(LyricEvent lyricEvent, bool respectDeltaTime) { if (ReferenceEquals(null, lyricEvent)) { return(false); } if (ReferenceEquals(this, lyricEvent)) { return(true); } return(base.Equals(lyricEvent, respectDeltaTime)); }
public LyricEventLabel(LyricEvent lyricEvent) : base(lyricEvent) { }
/// <summary> /// Determines whether the specified event is equal to the current one. /// </summary> /// <param name="lyricEvent">The event to compare with the current one.</param> /// <returns>true if the specified event is equal to the current one; otherwise, false.</returns> public bool Equals(LyricEvent lyricEvent) { return(Equals(lyricEvent, true)); }