Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Unit Testing Of SharePoint Custom Code with Emulator

$
0
0

Hi,

I am trying to test my Sharepoint custom code, using Microsoft.SharePoint.Emulator  with VS2012 Premium ( because I have MSDN Premium subscription) I know its officially comes with VS Ultimate version, but somehow I download the dlls :

  • Microsoft.SharePoint.Emulators
  • Microsoft.QualityTools.Testing.Fakes
  • Microsoft.QualityTools.Testing.Emulators

When I test my code:

 [TestMethod]

        public void TestGetABCInformation()

        {

            using (new SharePointEmulationScope())

            {

                DataTable dt = new DaoObjects.ABCDAO().GetRequestTriggers();

            }

        }

I got this error I tried a lot but can’t solve this issue.

System.IO.FileNotFoundException: Could not load file or assembly 'System.Web.2.0.0.0.Fakes, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0ae41878053f6703' or one of its dependencies. The system cannot find the file specified.WRN: Assembly binding logging is turned OFF.

To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.    Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Kindly share your opinion about it.


Nazish Ali Rizvi


Viewing all articles
Browse latest Browse all 11571

Trending Articles