public void MultipleParameter_Constructor_Throws() { var activator = new FallbackSearchActivator(typeof(MultipleParameterConstructorSearch)); activator.Invoking(x => x.Activate(ItemPropertyPath)) .Should() .ThrowExactly <SearchPropertyActivationException>(); }
public void No_Constructor_Succeeds() { var activator = new FallbackSearchActivator(typeof(NoConstructorSearch)); var result = activator.Activate(ItemPropertyPath); result.Should().NotBeNull(); result.Should().BeOfType <NoConstructorSearch>(); }