示例#1
0
            public async Task ShouldRunCommandWhenContainerStarts()
            {
                // act
                var(stdout, _) = await Container.ExecuteCommand(
                    PlatformSpecific.ShellCommand(
                        PlatformSpecific.IfExistsThenFormat($"{_fileTouchedByCommand}",
                                                            $"{PlatformSpecific.Echo} 1")));

                // assert
                Assert.Equal("1", stdout.TrimEndNewLine());
            }