summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/OpenId/DiffieHellmanTests.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-02-10 00:27:37 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2010-02-10 00:27:37 -0800
commit982a8ac73e6fa9f178a0fb15d9e04c91515c3e49 (patch)
tree9099e5e9da5f109ffa7c1c1e752e736a74ff66dd /src/DotNetOpenAuth.Test/OpenId/DiffieHellmanTests.cs
parent3be5be6f65fc857629677e69a357fd8c0d80d554 (diff)
parent5c6ae088e09a108759242e38aba723d50d7b083e (diff)
downloadDotNetOpenAuth-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/OpenId/DiffieHellmanTests.cs')
-rw-r--r--src/DotNetOpenAuth.Test/OpenId/DiffieHellmanTests.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/DotNetOpenAuth.Test/OpenId/DiffieHellmanTests.cs b/src/DotNetOpenAuth.Test/OpenId/DiffieHellmanTests.cs
index 426e19a..9e89b03 100644
--- a/src/DotNetOpenAuth.Test/OpenId/DiffieHellmanTests.cs
+++ b/src/DotNetOpenAuth.Test/OpenId/DiffieHellmanTests.cs
@@ -9,12 +9,12 @@ namespace DotNetOpenAuth.Test.OpenId {
using System.IO;
using DotNetOpenAuth.OpenId;
using DotNetOpenAuth.OpenId.Messages;
- using Microsoft.VisualStudio.TestTools.UnitTesting;
+ using NUnit.Framework;
using Org.Mentalis.Security.Cryptography;
- [TestClass]
+ [TestFixture]
public class DiffieHellmanTests : OpenIdTestBase {
- [TestMethod]
+ [TestCase]
public void Test() {
string s1 = Test1();
string s2 = Test1();
@@ -22,7 +22,7 @@ namespace DotNetOpenAuth.Test.OpenId {
Assert.AreNotEqual(s1, s2, "Secret keys should NOT be the same.");
}
- [TestMethod, Timeout(15000)]
+ [TestCase, Timeout(15000), Category("Slow"), Category("Performance")]
public void TestPublic() {
TextReader reader = new StringReader(OpenIdTestBase.LoadEmbeddedFile("dhpriv.txt"));
@@ -30,7 +30,7 @@ namespace DotNetOpenAuth.Test.OpenId {
string line;
int lineNumber = 0;
while ((line = reader.ReadLine()) != null) {
- TestContext.WriteLine("\tLine {0}", ++lineNumber);
+ TestUtilities.TestLogger.InfoFormat("\tLine {0}", ++lineNumber);
string[] parts = line.Trim().Split(' ');
byte[] x = Convert.FromBase64String(parts[0]);
DiffieHellmanManaged dh = new DiffieHellmanManaged(AssociateDiffieHellmanRequest.DefaultMod, AssociateDiffieHellmanRequest.DefaultGen, x);