fixes last failing test

This commit is contained in:
Shannon
2015-02-04 12:11:10 +11:00
parent 9cdea752e8
commit a7c134a375
2 changed files with 2 additions and 5 deletions

View File

@@ -364,7 +364,7 @@ namespace Umbraco.Tests.Services
}
[Test]
public void Using_XDocument_Throws_When_No_Culture_Found()
public void Using_XDocument_Returns_Default_Text_When_No_Culture_Found()
{
var culture = CultureInfo.GetCultureInfo("en-US");
var txtService = new LocalizedTextService(
@@ -378,7 +378,7 @@ namespace Umbraco.Tests.Services
}
});
Assert.Throws<NullReferenceException>(() => txtService.Localize("testArea/testKey", CultureInfo.GetCultureInfo("en-AU")));
Assert.AreEqual("[testKey]", txtService.Localize("testArea/testKey", CultureInfo.GetCultureInfo("en-AU")));
}
}
}

View File

@@ -8,7 +8,6 @@ using System.Collections.Generic;
using System.Diagnostics;
using System.Dynamic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Web;
using Umbraco.Core.Cache;
using Umbraco.Core.Dynamics;
@@ -16,8 +15,6 @@ using Umbraco.Core.Models;
using Umbraco.Core;
using System.Reflection;
using Umbraco.Core.Models.PublishedContent;
using Umbraco.Core.Strings;
using ContentType = umbraco.cms.businesslogic.ContentType;
namespace Umbraco.Web.Models
{