Fix broken tests

This commit is contained in:
Stephan
2013-09-24 11:28:32 +02:00
parent fae9fc6e2d
commit 2ef4b77bd9

View File

@@ -105,10 +105,10 @@ namespace Umbraco.Tests.PublishedContent
var doc = GetDynamicNode(1174);
var prop = doc.GetProperty("siteTitle", true);
Assert.IsNotNull(prop);
Assert.AreEqual("This is my site", prop.Value);
Assert.AreEqual("This is my site", prop.ObjectValue);
prop = doc.GetProperty("_siteTitle"); //test with underscore prefix
Assert.IsNotNull(prop);
Assert.AreEqual("This is my site", prop.Value);
Assert.AreEqual("This is my site", prop.ObjectValue);
Assert.AreEqual("This is my site", doc._siteTitle);
}
@@ -127,7 +127,7 @@ namespace Umbraco.Tests.PublishedContent
Assert.IsTrue(doc.HasProperty(Constants.Conventions.Content.UrlAlias));
var prop = doc.GetProperty(Constants.Conventions.Content.UrlAlias);
Assert.IsNotNull(prop);
Assert.AreEqual("page2/alias, 2ndpagealias", prop.Value);
Assert.AreEqual("page2/alias, 2ndpagealias", prop.ObjectValue);
Assert.AreEqual("page2/alias, 2ndpagealias", doc.umbracoUrlAlias);
}