Exemple #1
0
 public void ShouldOnlyFindExplicitAdded()
 {
     finder.Add <DummyClassConvention>();
     finder.Find <IClassConvention>()
     .ShouldHaveCount(1)
     .ShouldContain(c => c is DummyClassConvention);
 }
        public void AddingSingleShouldntThrowIfHasParameterlessConstructor()
        {
            Action act = () => finder.Add <ConventionWithParameterlessConstructor>();

            act.ShouldNotThrow();
        }
        public void AddingSingleShouldntThrowIfHasParameterlessConstructor()
        {
            var ex = Catch.Exception(() => finder.Add <ConventionWithParameterlessConstructor>());

            ex.ShouldBeNull();
        }