added HasValue unit test, removed the default.aspx file from the Web project, it now only exists in the UI project but

the codebehind still exist in the web for backwards compatibility. Updated the logging so that the LogHelper
can now write to a TraceContext specified if debugging which is handy if we want to write to the normal trace.
This commit is contained in:
Shannon Deminick
2012-08-29 07:47:16 +07:00
parent 3cd1592abc
commit 7be4480254
5 changed files with 44 additions and 40 deletions

View File

@@ -59,6 +59,18 @@ namespace Umbraco.Tests.DynamicDocument
}
[Test]
public void HasValue()
{
var asDynamic = GetDynamicNode(1173);
var hasValue = asDynamic.HasValue("umbracoUrlAlias");
var noValue = asDynamic.HasValue("blahblahblah");
Assert.IsTrue(hasValue);
Assert.IsFalse(noValue);
}
[Test]
public void Take()
{