public void Can_execute_function_with_a_defaulted_param() { string path = LoadExtension(); DreamMessage result = Plug.New(_host.LocalMachineUri).At(path, "DefaultedParam").Post(new DekiScriptMap().ToXml()); Assert.IsTrue(result.IsSuccessful); XDoc resultDoc = result.ToDocument(); Assert.AreEqual("value", resultDoc.Name); Assert.AreEqual( "args.date: " + DekiScriptLibrary.DateNow().Substring(0, 4), resultDoc.Elements.First.AsText.Substring(0, 15)); }