public void Equal_Object_Test() { // 1) arrange AEvent target = CreateEvent(); object obj = new SimpleEventMock(); // 2) act bool actual = target.Equals(obj); // 3) assert Assert.False(actual); }
public void Equal_Event_With_The_Same_Type_Test() { // 1) arrange AEvent target = CreateEvent(); AEvent other = new SimpleEventMock(); // 2) act bool actual = target.Equals(other); // 3) assert Assert.False(actual); }
public void Equal_Object_With_The_Same_Id_Test() { // 1) arrange AEvent target = CreateEvent(); object other = new SimpleEventMock(); ((AEvent)other).ID = target.ID; // 2) act bool actual = target.Equals(other); // 3) assert Assert.True(actual); }
internal AEvent CreateEvent() { AEvent target = new SimpleEventMock(); return(target); }