Moles issue Please help me ?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi Experts,
i have moles in my test method for mock dates. i give reffernces my test project , and run my test method i got this error
The host type Moles cannot be loaded for the following reason: The key Moles cannot be found.
please any help me ?
here is my test method :
[TestMethod, HostType("Moles")]<br/>
public void TestPS()<br/>
{<br/>
MDateTime.NowGet = () => new DateTime(2012, 9, 01);<br/>
<br/>
var inputMap = new XPathDocument("source.xml").CreateNavigator();<br/>
var expected = new XPathDocument("expected.xml").CreateNavigator();<br/>
var actual = _target.TestMap(inputMap);<br/>
XmlAssertHelper.AssertXmlsAreEqual(expected, actual, );<br/>
}

Thanks,
sat
<br/>

View the full article
 
Back
Top