public async Task ShouldBeAvailableWhenTheyAreSet() { // act var(stdout, _) = await Container.ExecuteCommand( PlatformSpecific.EchoCommand(PlatformSpecific.EnvVarFormat(_injectedEnvVar.Key))); // assert Assert.Equal(_injectedEnvVar.Value, stdout.TrimEndNewLine()); }
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)); }