public void DeviceNameEvent() { var value = GetRandomValue(); var name = "nname"; var x = new DeviceNameEvent(value.ticks, name); var y = ReDeserialize(x); Assert.That(x.Ticks == y.Ticks); Assert.That(x.name == y.name); }
/// <summary> /// Determines whether the specified event is equal to the current one. /// </summary> /// <param name="deviceNameEvent">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(DeviceNameEvent deviceNameEvent, bool respectDeltaTime) { if (ReferenceEquals(null, deviceNameEvent)) { return(false); } if (ReferenceEquals(this, deviceNameEvent)) { return(true); } return(base.Equals(deviceNameEvent, respectDeltaTime)); }
/// <summary> /// Determines whether the specified event is equal to the current one. /// </summary> /// <param name="deviceNameEvent">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(DeviceNameEvent deviceNameEvent) { return(Equals(deviceNameEvent, true)); }
public DeviceNameEventLabel(DeviceNameEvent deviceNameEvent) : base(deviceNameEvent) { }