Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/tests/MacPlatform.Tests/CredentialsProviderTests.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/main/tests/MacPlatform.Tests/CredentialsProviderTests.cs b/main/tests/MacPlatform.Tests/CredentialsProviderTests.cs
index 698651e0f2..94c183927a 100644
--- a/main/tests/MacPlatform.Tests/CredentialsProviderTests.cs
+++ b/main/tests/MacPlatform.Tests/CredentialsProviderTests.cs
@@ -24,6 +24,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using System;
+using MonoDevelop.MacInterop;
using NUnit.Framework;
namespace MacPlatform.Tests
@@ -31,6 +32,22 @@ namespace MacPlatform.Tests
[TestFixture]
public class CredentialsProviderTests : MonoDevelop.Core.BaseCredentialsProviderTests
{
+ static string TestKeyChain = "ThisIsMonoDevelopsPrivateKeyChainForTests";
+
+ [TestFixtureSetUp]
+ public void FixtureSetup ()
+ {
+ Keychain.TryDeleteKeychain (TestKeyChain);
+ Keychain.CurrentKeychain = Keychain.CreateKeychain (TestKeyChain, "mypassword");
+ }
+
+ [TestFixtureTearDown]
+ public void FixtureTeardown ()
+ {
+ Keychain.DeleteKeychain (Keychain.CurrentKeychain);
+ Keychain.CurrentKeychain = IntPtr.Zero;
+ }
+
protected override MonoDevelop.Core.IPasswordProvider GetPasswordProvider ()
{
return new MonoDevelop.MacIntegration.MacKeychainPasswordProvider ();