public void AndShouldNotBeA_ExceptionIsNotSpecifiedType_ReturnsSelf()
        {
            ActualException<Exception> sut = new ActualException<Exception>(new Exception());

            ActualException<Exception> result = sut.AndShouldNotBeA<InvalidOperationException>();

            Assert.AreSame(sut, result);
        }
        public void AndShouldNotBeA_ExceptionIsSpecifiedType_FailsWithTypesAreEqualMessage()
        {
            Exception exception = new InvalidOperationException();
            MockFormatter.AreEqual(typeof(InvalidOperationException), typeof(InvalidOperationException), "foo").Returns("bar");
            ActualException<Exception> sut = new ActualException<Exception>(exception);

            EasyAssertionException result = Assert.Throws<EasyAssertionException>(() => sut.AndShouldNotBeA<InvalidOperationException>("foo"));

            Assert.AreEqual("bar", result.Message);
        }