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

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

            ex.ShouldBeNull();
        }