diff --git a/sdk/core/Azure.Core.TestFramework/src/TestEnvironment.cs b/sdk/core/Azure.Core.TestFramework/src/TestEnvironment.cs index c2af55787c28..948fbc9249c2 100644 --- a/sdk/core/Azure.Core.TestFramework/src/TestEnvironment.cs +++ b/sdk/core/Azure.Core.TestFramework/src/TestEnvironment.cs @@ -177,10 +177,6 @@ protected string GetRecordedOptionalVariable(string name, Action { // To make NUnit happy @@ -114,8 +131,9 @@ public MockTestEnvironment(): base("core") public string Base64Secret => GetRecordedVariable("Base64Secret", option => option.IsSecret(SanitizedValue.Base64)); public string DefaultSecret => GetRecordedVariable("DefaultSecret", option => option.IsSecret(SanitizedValue.Default)); public string CustomSecret => GetRecordedVariable("CustomSecret", option => option.IsSecret("Custom")); + public string MissingOptionalSecret => GetRecordedOptionalVariable("MissingOptionalSecret", option => option.IsSecret("INVALID")); public string ConnectionStringWithSecret => GetRecordedVariable("ConnectionStringWithSecret", option => option.HasSecretConnectionStringParameter("key")); } } -} \ No newline at end of file +}