public void ShouldPassWhenPassedAnAssemlyToWhichSourceHasNoReference()
        {
            var types = Types.InAssemblyOf <AssemblyIdType>();

            types = types.Without(typeof(ExceptionWithoutExceptionSuffix));
            var convention = new ExceptionsNamesMustEndWithException();

            //WHEN-THEN
            Convention.Is(convention, types);
        }
        public void ShouldFailWhenPassedAnAssemlyToWhichSourceHasReference()
        {
            var types      = Types.InAssemblyOf <AssemblyIdType>();
            var convention = new ExceptionsNamesMustEndWithException();

            //WHEN-THEN
            var exception = Assert.Throws <ConventionFailedException>(() =>
            {
                Convention.Is(convention, types);
            });

            StringAssert.StartsWith(
                "'All types inheriting from exception must end with 'Exception'' for 'Types in ConventionsFixture'",
                exception.Message);
            StringAssert.EndsWith("ConventionsFixture.ExceptionWithoutExceptionSuffix\r\n",
                                  exception.Message);
            Assert.AreEqual(1, OccurencesOfString("ConventionsFixture", exception.Message));
        }