Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }
Exemple #4
0
        internal AEvent CreateEvent()
        {
            AEvent target = new SimpleEventMock();

            return(target);
        }