public void CreateEscapeSysEx_Completed() { var data = new byte[] { 0x67, 0x45, 0xF7 }; var sysExEvent = new EscapeSysExEvent(data); CollectionAssert.AreEqual(data, sysExEvent.Data, "Data is invalid."); Assert.IsTrue(sysExEvent.Completed, "'Completed' value is invalid."); }
/// <summary> /// Determines whether the specified event is equal to the current one. /// </summary> /// <param name="escapeSysExEvent">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(EscapeSysExEvent escapeSysExEvent, bool respectDeltaTime) { if (ReferenceEquals(null, escapeSysExEvent)) { return(false); } if (ReferenceEquals(this, escapeSysExEvent)) { return(true); } return(base.Equals(escapeSysExEvent, respectDeltaTime)); }
/// <summary> /// Determines whether the specified event is equal to the current one. /// </summary> /// <param name="escapeSysExEvent">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(EscapeSysExEvent escapeSysExEvent) { return(Equals(escapeSysExEvent, true)); }