Example #1
0
        public void ItThrowsIfMultipleEntryPointNotFound()
        {
            Action find = () =>
                          EntryPointDiscoverer.FindStaticEntryMethod(typeof(CommandLineTests).Assembly);

            find.Should().Throw <AmbiguousMatchException>();
        }
Example #2
0
        public void ItThrowsIfEntryPointNotFound()
        {
            Action find = () =>
                          EntryPointDiscoverer.FindStaticEntryMethod(typeof(IEnumerable <>).Assembly);

            find.Should().Throw <InvalidProgramException>();
        }