Exemplo n.º 1
0
        public void SutDoesNotEqualAnonymousObject(object other)
        {
            var sut    = new EventInfoElement(TypeWithEvents.LocalEvent);
            var actual = sut.Equals(other);

            Assert.False(actual);
        }
Exemplo n.º 2
0
        public void SutEqualsOtherIdenticalInstance()
        {
            var ei    = TypeWithEvents.LocalEvent;
            var sut   = new EventInfoElement(ei);
            var other = new EventInfoElement(ei);

            var actual = sut.Equals(other);

            Assert.True(actual);
        }
Exemplo n.º 3
0
        public void SutDoesNotEqualDifferentInstanceOfSameType()
        {
            var sut        = new EventInfoElement(TypeWithEvents.LocalEvent);
            var otherEvent = typeof(Assembly).GetEvent("ModuleResolve");
            var other      = new EventInfoElement(otherEvent);

            var actual = sut.Equals(other);

            Assert.False(actual);
        }
        public void SutDoesNotEqualDifferentInstanceOfSameType()
        {
            var sut = new EventInfoElement(TypeWithEvent.LocalEvent);
            var otherEvent = typeof(Assembly).GetEvent("ModuleResolve");
            var other = new EventInfoElement(otherEvent);

            var actual = sut.Equals(other);

            Assert.False(actual);
        }
 public void SutDoesNotEqualAnonymousObject(object other)
 {
     var sut = new EventInfoElement(TypeWithEvent.LocalEvent);
     var actual = sut.Equals(other);
     Assert.False(actual);
 }
        public void SutEqualsOtherIdenticalInstance()
        {
            var ei = TypeWithEvent.LocalEvent;
            var sut = new EventInfoElement(ei);
            var other = new EventInfoElement(ei);

            var actual = sut.Equals(other);

            Assert.True(actual);
        }