Beispiel #1
0
        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");
        }
Beispiel #2
0
 public void ChefClientLoaderWithin_ShouldBeInBinDirectory()
 {
     ChefProcess.ChefClientLoaderWithin(ChefInstallPath).Should().Be($@"{ChefInstallPath}\bin\chef-client");
 }
Beispiel #3
0
        public void RubyExecutable_ShouldBeInEmbeddedDirectory()
        {
            var actual = ChefProcess.RubyExecutableWithin(ChefInstallPath);

            actual.Should().Be($@"{ChefInstallPath}\embedded\bin\ruby.exe");
        }