示例#1
0
            public void ProgramNameEvent()
            {
                var value = GetRandomValue();
                var name  = "nname";

                var x = new ProgramNameEvent(value.ticks, name);
                var y = ReDeserialize(x);

                Assert.That(x.Ticks == y.Ticks);
                Assert.That(x.name == y.name);
            }
示例#2
0
        /// <summary>
        /// Determines whether the specified event is equal to the current one.
        /// </summary>
        /// <param name="programNameEvent">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(ProgramNameEvent programNameEvent, bool respectDeltaTime)
        {
            if (ReferenceEquals(null, programNameEvent))
            {
                return(false);
            }

            if (ReferenceEquals(this, programNameEvent))
            {
                return(true);
            }

            return(base.Equals(programNameEvent, respectDeltaTime));
        }
 public ProgramNameEventLabel(ProgramNameEvent programNameEvent) : base(programNameEvent)
 {
 }
示例#4
0
 /// <summary>
 /// Determines whether the specified event is equal to the current one.
 /// </summary>
 /// <param name="programNameEvent">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(ProgramNameEvent programNameEvent)
 {
     return(Equals(programNameEvent, true));
 }