Advertisement
Guest User

Untitled

a guest
Sep 4th, 2017
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. System.NotImplementedException :
  2. Portable Bait And Switch is nuget feature, so the package must be installed in all project.
  3.  
  4. NotImplementedException will indicate that Portable Code from PCL is used and not Platform Specific
  5. implementation. Please check whether platform specific Assembly is properly installed.
  6.  
  7. Cannot save account in Portable profile - bait-and-switch error.
  8. Please file a bug in https://bugzilla.xamarin.com
  9.  
  10. AccountStore store;
  11. store = AccountStore.Create();
  12.  
  13. using System;
  14. using NUnit.Framework;
  15. using CrowdWisdom;
  16. using CrowdWisdom.Authentication;
  17.  
  18. namespace CrowdWisdomTest
  19. {
  20. [TestFixture()]
  21. public class AuthServiceTest
  22. {
  23. [Test()]
  24. public void SaveRestoreSecret()
  25. {
  26. String secret = "ABCD";
  27. AuthService auth = AuthService.GetInstance();
  28. auth.putSecret("MySecret", secret);
  29. Assert.AreEqual(secret, auth.GetSecret("MySecret"));
  30. }
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement