Quantcast
Channel: BizTalk Server General Forum
Viewing all articles
Browse latest Browse all 872

Moles errors in MS Tetsing

$
0
0

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")]
        public void TestPS()
        {
            MDateTime.NowGet = () => new DateTime(2012, 9, 01);

            var inputMap = new XPathDocument("source.xml").CreateNavigator();
            var expected = new XPathDocument("expected.xml").CreateNavigator();
            var actual = _target.TestMap(inputMap);
            XmlAssertHelper.AssertXmlsAreEqual(expected, actual, );
        }

Thanks,

sat



Viewing all articles
Browse latest Browse all 872

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>