Issues with Compiling Guidance Automation Src for Web Client Software Factory.

Topics: Web Client Software Factory
Feb 11, 2007 at 11:39 AM
Hi there,
I am trying to compile and test the Guidance Automation Source that came with the WCSF. I have run into the following error :

Test method WebClientFactoryPackage.Tests.CreateViewPagePresenterTestFixture.ChangeViewNameOnViewChangesModel threw exception: System.ArgumentNullException: Value cannot be null.
Parameter name: path1.
------------------------------------------------------------
This happens on 6 different test cases -
When I debug this test case, I see that the Project Path is not set -

Additionally - I get the following warnings :
Warning 1 Unable to find dependency 'ENVDTE' (Signature='B03F5F7F11D50A3A' Version='7.0.3300.0') of assembly 'Microsoft.Practices.RecipeFramework.Extensions.dll' ..\WCSFSource\GP\WebClientFactory\WebClientFactoryPackageSetup\WebClientFactoryPackageSetup.vdproj WebClientFactoryPackageSetup
I assume that since this is setup, and the RecipeFramework.Extensions.dll has both ENVDTE Version8.x and 7.x referecned, this should not be the issue -


Any help is gratefully accepted.

Thanks in advance :)





Feb 11, 2007 at 1:25 PM
Folks,
A quick update :
I had to make the following code change to get the tests to run :

In file : CreateViewPageTestFixture.cs

private void CreateMockSolutionModel()
{
MockProjectModel moduleProject1 = new MockProjectModel();
moduleProject1.Responsibility = "IsModuleProject";
moduleProject1.Project = new object();
moduleProject1.AssemblyName = "Module1";
//Added the following line to set the path - needed for tests.
moduleProject1.ProjectPath = Path.Combine(TestContext.TestDeploymentDir, moduleProject1.AssemblyName);

Can you please confirm that this fix is accurate ?
Thanks in advance,