private static void AssertChefProcessRunShouldNotGenerateLogEntries(ChefProcess chefProcess) { bool logEntryReceived = false; chefProcess.LogEntryReceived += (sender, entry) => { logEntryReceived = true; }; chefProcess.Run(); logEntryReceived.Should().BeFalse("because null entries should not be shared"); }
public void ChefClientLoaderWithin_ShouldBeInBinDirectory() { ChefProcess.ChefClientLoaderWithin(ChefInstallPath).Should().Be($@"{ChefInstallPath}\bin\chef-client"); }
public void RubyExecutable_ShouldBeInEmbeddedDirectory() { var actual = ChefProcess.RubyExecutableWithin(ChefInstallPath); actual.Should().Be($@"{ChefInstallPath}\embedded\bin\ruby.exe"); }