summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/LocalizationTests.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-01-31 21:35:48 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2010-01-31 21:35:48 -0800
commit6a1f0a2c033cbdd652aadafcbefbcc8cdbbf2186 (patch)
tree976c28423d229e313e968fbf56d950411fc106df /src/DotNetOpenAuth.Test/LocalizationTests.cs
parentdaf0b05fba9cae039ee631bbe008f8225c065ffc (diff)
parent17e1e88e7f75c86a6d4494dd2cb59eb9a7e75280 (diff)
downloadDotNetOpenAuth-6a1f0a2c033cbdd652aadafcbefbcc8cdbbf2186.zip
DotNetOpenAuth-6a1f0a2c033cbdd652aadafcbefbcc8cdbbf2186.tar.gz
DotNetOpenAuth-6a1f0a2c033cbdd652aadafcbefbcc8cdbbf2186.tar.bz2
Merged master back into v3.4 for VS2010 support.
Merge branch 'master' into v3.4
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();
}