summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/LocalizationTests.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-01-08 13:32:17 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2010-01-08 13:32:17 -0800
commitc09c717665b8bb08bde6b3741b2d7a21242ffb6c (patch)
tree871a9c53bb4a90398e593dd89fa544083b8a5d89 /src/DotNetOpenAuth.Test/LocalizationTests.cs
parent64eeddafbcb546ff0a175675d55dc8c8ee4ec141 (diff)
parent623f8a1e53a1fd1bb58f540c226d1538dc5e86a5 (diff)
downloadDotNetOpenAuth-c09c717665b8bb08bde6b3741b2d7a21242ffb6c.zip
DotNetOpenAuth-c09c717665b8bb08bde6b3741b2d7a21242ffb6c.tar.gz
DotNetOpenAuth-c09c717665b8bb08bde6b3741b2d7a21242ffb6c.tar.bz2
Merge branch 'nunit' into master-Dev10
Diffstat (limited to 'src/DotNetOpenAuth.Test/LocalizationTests.cs')
-rw-r--r--src/DotNetOpenAuth.Test/LocalizationTests.cs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/DotNetOpenAuth.Test/LocalizationTests.cs b/src/DotNetOpenAuth.Test/LocalizationTests.cs
index 50e9a34..4920deb 100644
--- a/src/DotNetOpenAuth.Test/LocalizationTests.cs
+++ b/src/DotNetOpenAuth.Test/LocalizationTests.cs
@@ -8,19 +8,21 @@ namespace DotNetOpenAuth.Test {
using System;
using System.Globalization;
using System.Threading;
+ using System.Web;
using DotNetOpenAuth.Messaging;
- using Microsoft.VisualStudio.TestTools.UnitTesting;
+ using NUnit.Framework;
/// <summary>
/// Tests various localized resources work as expected.
/// </summary>
- [TestClass]
- public class LocalizationTests {
+ [TestFixture]
+ public class LocalizationTests : TestBase {
/// <summary>
/// Tests that Serbian localized strings are correctly installed.
/// </summary>
- [TestMethod, ExpectedException(typeof(InvalidOperationException), "Ovaj metod zahteva tekući HttpContext. Kao alternativa, koristite preklopljeni metod koji dozvoljava da se prosledi informacija bez HttpContext-a.")]
+ [TestCase, ExpectedException(typeof(InvalidOperationException), ExpectedMessage = "Ovaj metod zahteva tekući HttpContext. Kao alternativa, koristite preklopljeni metod koji dozvoljava da se prosledi informacija bez HttpContext-a.")]
public void Serbian() {
+ HttpContext.Current = null; // our testbase initializes this, but it must be null to throw
Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo("sr");
ErrorUtilities.VerifyHttpContext();
}