Ejemplo n.º 1
0
 public MockProjectItem(string pathOrName, bool isLink = false)
 {
     Name           = Path.GetFileName(pathOrName);
     MockProperties = new MockProperties(this);
     ProjectItems   = new MockProjectItems(this);
     if (isLink)
     {
         MockProperties.PropertiesList.Add(new MockProperty("FullPath", pathOrName));
         MockProperties.PropertiesList.Add(new MockProperty("IsLink", true));
         Kind = Constants.vsProjectItemKindPhysicalFile;
     }
 }
Ejemplo n.º 2
0
 public MockProject()
 {
     Properties   = new MockProperties(this);
     FullName     = string.Format(@"c:\mockProjectPath\{0}\{0}.csproj", Random.Next());
     ProjectItems = new MockProjectItems(this);
 }