blob: 26b49cfa0ce75020fc9fc248f97cb9bc108c6b73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
//-----------------------------------------------------------------------
// <copyright file="LocalizationTests.cs" company="Andrew Arnott">
// Copyright (c) Andrew Arnott. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace DotNetOpenAuth.Test {
using System;
using System.Globalization;
using System.Threading;
using DotNetOpenAuth.Messaging;
using NUnit.Framework;
/// <summary>
/// Tests various localized resources work as expected.
/// </summary>
[TestFixture]
public class LocalizationTests {
/// <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() {
Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo("sr");
ErrorUtilities.VerifyHttpContext();
}
}
}
|