diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2010-02-10 00:27:37 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2010-02-10 00:27:37 -0800 |
commit | 982a8ac73e6fa9f178a0fb15d9e04c91515c3e49 (patch) | |
tree | 9099e5e9da5f109ffa7c1c1e752e736a74ff66dd /src/DotNetOpenAuth.Test/OAuth/ServiceProviderTests.cs | |
parent | 3be5be6f65fc857629677e69a357fd8c0d80d554 (diff) | |
parent | 5c6ae088e09a108759242e38aba723d50d7b083e (diff) | |
download | DotNetOpenAuth-982a8ac73e6fa9f178a0fb15d9e04c91515c3e49.zip DotNetOpenAuth-982a8ac73e6fa9f178a0fb15d9e04c91515c3e49.tar.gz DotNetOpenAuth-982a8ac73e6fa9f178a0fb15d9e04c91515c3e49.tar.bz2 |
Upgraded to VS2010.
Merge remote branch 'origin/v3.4-Dev10' into v3.4
Diffstat (limited to 'src/DotNetOpenAuth.Test/OAuth/ServiceProviderTests.cs')
-rw-r--r-- | src/DotNetOpenAuth.Test/OAuth/ServiceProviderTests.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/DotNetOpenAuth.Test/OAuth/ServiceProviderTests.cs b/src/DotNetOpenAuth.Test/OAuth/ServiceProviderTests.cs index 2a443ce..ceb9a60 100644 --- a/src/DotNetOpenAuth.Test/OAuth/ServiceProviderTests.cs +++ b/src/DotNetOpenAuth.Test/OAuth/ServiceProviderTests.cs @@ -11,14 +11,14 @@ namespace DotNetOpenAuth.Test.OAuth { using System.Text; using DotNetOpenAuth.Messaging; using DotNetOpenAuth.OAuth; - using Microsoft.VisualStudio.TestTools.UnitTesting; + using NUnit.Framework; - [TestClass] + [TestFixture] public class ServiceProviderTests : TestBase { /// <summary> /// Verifies the CreateVerificationCode method. /// </summary> - [TestMethod] + [TestCase] public void CreateVerificationCode() { this.TestCode(VerificationCodeFormat.Numeric, 3, MessagingUtilities.Digits); this.TestCode(VerificationCodeFormat.AlphaLower, 5, MessagingUtilities.LowercaseLetters); @@ -28,7 +28,7 @@ namespace DotNetOpenAuth.Test.OAuth { private void TestCode(VerificationCodeFormat format, int length, string allowableCharacters) { string code = ServiceProvider.CreateVerificationCode(format, length); - TestContext.WriteLine("{0} of length {2}: {1}", format, code, length); + TestUtilities.TestLogger.InfoFormat("{0} of length {2}: {1}", format, code, length); Assert.AreEqual(length, code.Length); foreach (char ch in code) { Assert.IsTrue(allowableCharacters.Contains(ch)); |