public void ItThrowsIfMultipleEntryPointNotFound() { Action find = () => EntryPointDiscoverer.FindStaticEntryMethod(typeof(CommandLineTests).Assembly); find.Should().Throw <AmbiguousMatchException>(); }
public void ItThrowsIfEntryPointNotFound() { Action find = () => EntryPointDiscoverer.FindStaticEntryMethod(typeof(IEnumerable <>).Assembly); find.Should().Throw <InvalidProgramException>(); }