public void Equals() { Event e1 = new Event(EventType.Informative); e1.Description = "Description"; e1.SimulationTime = new TimeStamp(44060.0); e1.SetAttribute("key1","value1"); e1.SetAttribute("key2","value2"); e1.SetAttribute("key3","value3"); Assert.IsTrue(e1.Equals(e)); Assert.IsFalse(e.Equals(null)); Assert.IsFalse(e.Equals("string")); }
public void EqualsType() { Event e1 = new Event(EventType.DataChanged); e1.Description = "Description"; e1.SimulationTime = new TimeStamp(44060.0); e1.SetAttribute("key1","value1"); e1.SetAttribute("key2","value2"); e1.SetAttribute("key3","value3"); Assert.IsFalse(e1.Equals(e)); }