summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/LocalizationTests.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-01-18 21:55:08 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2010-01-18 21:55:08 -0800
commit836364e9644f3c69744080430dc70c65783851a5 (patch)
treec3b91a58b72146b9c65848da1b40ed57c574074a /src/DotNetOpenAuth.Test/LocalizationTests.cs
parent6c75aba75576b7ff6a3db106324800751550bcc7 (diff)
parent4341ce681fbe4ff9b4a6b80127f495347f647dc7 (diff)
downloadDotNetOpenAuth-836364e9644f3c69744080430dc70c65783851a5.zip
DotNetOpenAuth-836364e9644f3c69744080430dc70c65783851a5.tar.gz
DotNetOpenAuth-836364e9644f3c69744080430dc70c65783851a5.tar.bz2
Merge branch 'master-Dev10' into oauthWRAP
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();
}