28 references to GetOutput
Microsoft.Extensions.SecretManager.Tools.Tests (28)
SecretManagerTests.cs (28)
47
Assert.Contains(Resources.FormatError_ProjectMissingId(project), _console.
GetOutput
());
57
Assert.Contains(Resources.FormatError_ProjectFailedToLoad(project), _console.
GetOutput
());
67
Assert.Contains(Resources.FormatError_ProjectPath_NotFound(projectPath), _console.
GetOutput
());
80
Assert.Contains(Resources.FormatMessage_Project_File_Path(Path.Combine(cwd, "..", "TestProject.csproj")), _console.
GetOutput
());
116
_console.
GetOutput
());
128
_console.
GetOutput
());
147
Assert.Contains(Resources.Error_No_Secrets_Found, _console.
GetOutput
());
157
Assert.Contains("Successfully saved secret1 to the secret store.", _console.
GetOutput
());
159
Assert.Contains("Successfully saved secret1 to the secret store.", _console.
GetOutput
());
164
Assert.Contains("secret1 = value2", _console.
GetOutput
());
175
Assert.Contains(string.Format(CultureInfo.InvariantCulture, "Project file path {0}.", Path.Combine(projectPath, "TestProject.csproj")), _console.
GetOutput
());
176
Assert.Contains(string.Format(CultureInfo.InvariantCulture, "Secrets file path {0}.", PathHelper.GetSecretsPathFromSecretsId(secretId)), _console.
GetOutput
());
177
Assert.Contains("Successfully saved secret1 to the secret store.", _console.
GetOutput
());
182
Assert.Contains(string.Format(CultureInfo.InvariantCulture, "Project file path {0}.", Path.Combine(projectPath, "TestProject.csproj")), _console.
GetOutput
());
183
Assert.Contains(string.Format(CultureInfo.InvariantCulture, "Secrets file path {0}.", PathHelper.GetSecretsPathFromSecretsId(secretId)), _console.
GetOutput
());
184
Assert.Contains("secret1 = value1", _console.
GetOutput
());
193
Assert.Contains("Cannot find 'secret1' in the secret store.", _console.
GetOutput
());
203
Assert.Contains("SeCreT1 = value", _console.
GetOutput
());
209
Assert.Contains(Resources.Error_No_Secrets_Found, _console.
GetOutput
());
222
Assert.Contains("AzureAd:ClientSecret = abcd郩˙î", _console.
GetOutput
());
235
var stdout = _console.
GetOutput
();
253
Assert.Contains("AzureAd:ClientSecret = ¡™£¢∞", _console.
GetOutput
());
267
Assert.Contains(Resources.Error_No_Secrets_Found, _console.
GetOutput
());
303
_console.
GetOutput
());
316
_console.
GetOutput
());
326
Assert.Contains(Resources.Error_No_Secrets_Found, _console.
GetOutput
());
338
Assert.DoesNotContain(Resources.FormatError_ProjectMissingId(project), _console.
GetOutput
());
339
Assert.DoesNotContain("--help", _console.
GetOutput
());