summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/LocalizationTests.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOpenAuth.Test/LocalizationTests.cs')
-rw-r--r--src/DotNetOpenAuth.Test/LocalizationTests.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth.Test/LocalizationTests.cs b/src/DotNetOpenAuth.Test/LocalizationTests.cs
index 26b49cf..733e77d 100644
--- a/src/DotNetOpenAuth.Test/LocalizationTests.cs
+++ b/src/DotNetOpenAuth.Test/LocalizationTests.cs
@@ -10,17 +10,19 @@ namespace DotNetOpenAuth.Test {
using System.Threading;
using DotNetOpenAuth.Messaging;
using NUnit.Framework;
+ using System.Web;
/// <summary>
/// Tests various localized resources work as expected.
/// </summary>
[TestFixture]
- public class LocalizationTests {
+ public class LocalizationTests : TestBase {
/// <summary>
/// Tests that Serbian localized strings are correctly installed.
/// </summary>
[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();
}