diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2010-01-31 21:34:41 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2010-01-31 21:34:41 -0800 |
commit | 17e1e88e7f75c86a6d4494dd2cb59eb9a7e75280 (patch) | |
tree | 27c1e400cdb7712a05b1577d0583cf6d5de49375 /src/DotNetOpenAuth.Test/LocalizationTests.cs | |
parent | 7b741da22d416744bf8f6f75c7a55552d1c1feca (diff) | |
parent | 4341ce681fbe4ff9b4a6b80127f495347f647dc7 (diff) | |
download | DotNetOpenAuth-17e1e88e7f75c86a6d4494dd2cb59eb9a7e75280.zip DotNetOpenAuth-17e1e88e7f75c86a6d4494dd2cb59eb9a7e75280.tar.gz DotNetOpenAuth-17e1e88e7f75c86a6d4494dd2cb59eb9a7e75280.tar.bz2 |
Upgraded solution to Visual Studio 2010.
Merge branch 'master-Dev10'
Diffstat (limited to 'src/DotNetOpenAuth.Test/LocalizationTests.cs')
-rw-r--r-- | src/DotNetOpenAuth.Test/LocalizationTests.cs | 10 |
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(); } |