Beispiel #1
0
            public async Task ShouldBeAvailableWhenTheyAreSet()
            {
                // act
                var(stdout, _) = await Container.ExecuteCommand(
                    PlatformSpecific.EchoCommand(PlatformSpecific.EnvVarFormat(_injectedEnvVar.Key)));

                // assert
                Assert.Equal(_injectedEnvVar.Value, stdout.TrimEndNewLine());
            }
Beispiel #2
0
            public async Task ShouldReturnSuccessfulResponseInStdOut()
            {
                // arrange
                const string hello = "hello-world";

                // act
                var(stdout, stderr) = await Container.ExecuteCommand(PlatformSpecific.EchoCommand(hello));

                // assert
                Assert.Equal(hello, stdout.TrimEndNewLine());
                Assert.True(string.IsNullOrEmpty(stderr));
            }