public void DisablesDebugIfNotConfigured() { var config = new ConfigurationBuilder().Build(); var provider = new NodeWorkerProvider(); var args = new ArgumentsDescription(); var result = provider.TryConfigureArguments(args, config, new TestLogger("test")); Assert.True(result); Assert.DoesNotContain(args.ExecutableArguments, (exeArgs) => exeArgs.Contains("--inspect")); }
public void SetsDebugAddress() { var config = new ConfigurationBuilder() .AddInMemoryCollection(new List <KeyValuePair <string, string> >() { new KeyValuePair <string, string>("workers:node:debug", "localhost:2020"), }) .Build(); var provider = new NodeWorkerProvider(); var args = new ArgumentsDescription(); var result = provider.TryConfigureArguments(args, config, new TestLogger("test")); Assert.True(result); Assert.Contains(args.ExecutableArguments, (exeArgs) => exeArgs.Contains("--inspect=localhost:2020")); }