public void EqualityTest() { var hoge = new ArticulationName("Hoge"); var huga = new ArticulationName("Huga"); Assert.IsFalse(hoge.Equals(huga)); var hoge1 = new ArticulationName("Hoge"); var hoge2 = new ArticulationName("Hoge"); Assert.IsTrue(hoge1.Equals(hoge2)); }
public bool Equals(Articulation?other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(ArticulationName.Equals(other.ArticulationName) && MidiNoteOns.SequenceEqual(other.MidiNoteOns) && MidiControlChanges.SequenceEqual(other.MidiControlChanges) && MidiProgramChanges.SequenceEqual(other.MidiProgramChanges)); }