예제 #1
0
        public void MultipleParameter_Constructor_Throws()
        {
            var activator = new FallbackSearchActivator(typeof(MultipleParameterConstructorSearch));

            activator.Invoking(x => x.Activate(ItemPropertyPath))
            .Should()
            .ThrowExactly <SearchPropertyActivationException>();
        }
예제 #2
0
        public void No_Constructor_Succeeds()
        {
            var activator = new FallbackSearchActivator(typeof(NoConstructorSearch));

            var result = activator.Activate(ItemPropertyPath);

            result.Should().NotBeNull();
            result.Should().BeOfType <NoConstructorSearch>();
        }