public void TestInvalidDependencyType() { var build = new InvalidDependencyTypeTestBuild(); Action action = () => ExecutableTargetFactory.CreateAll(build, x => x.E); action.Should().Throw <InvalidCastException>(); }
public void TestInvalidDependencyType() { var build = new InvalidDependencyTypeTestBuild(); Assert.Throws <InvalidCastException>(() => ExecutableTargetFactory.CreateAll(build, x => x.E)); }