public void EntryPoint() { MethodInfo entryPoint = typeof(TestExe).GetTypeInfo().Assembly.EntryPoint; Assert.NotNull(entryPoint); Assert.Equal(42, entryPoint.Invoke(null, null)); }