1 write to Proxy
Microsoft.Build.Engine.OM.UnitTests (1)
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectLink.cs (1)
122this.Proxy = proxy;
45 references to Proxy
Microsoft.Build.Engine.OM.UnitTests (45)
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectLink.cs (45)
128object ILinkMock.Remoter => this.Proxy; 131public override ProjectRootElement Xml => (ProjectRootElement)this.Proxy.Xml.Import(this.Linker); 133public override bool ThrowInsteadOfSplittingItemElement { get => this.Proxy.ThrowInsteadOfSplittingItemElement; set => this.Proxy.ThrowInsteadOfSplittingItemElement = value; } 135public override bool IsDirty => this.Proxy.IsDirty; 137public override IDictionary<string, string> GlobalProperties => this.Proxy.GlobalProperties; 139public override ICollection<string> ItemTypes => this.Proxy.ItemTypes; 141public override ICollection<ProjectProperty> Properties => this.Linker.ImportCollection<ProjectProperty, MockProjectPropertyLinkRemoter>(this.Proxy.Properties); 143public override IDictionary<string, List<string>> ConditionedProperties => this.Proxy.ConditionedProperties; 146=> this.Linker.ImportDictionary<string, ProjectItemDefinition, MockProjectItemDefinitionLinkRemoter>(this.Proxy.ItemDefinitions); 148public override ICollection<ProjectItem> Items => this.Linker.ImportCollection<ProjectItem, MockProjectItemLinkRemoter>(this.Proxy.Items); 150public override ICollection<ProjectItem> ItemsIgnoringCondition => this.Linker.ImportCollection<ProjectItem, MockProjectItemLinkRemoter>(this.Proxy.ItemsIgnoringCondition); 153=> this.Proxy.Imports.ConvertCollection<ResolvedImport, RemotedResolvedImport>((a) => a.Import(this.Linker)); 156=> this.Proxy.ImportsIncludingDuplicates.ConvertCollection<ResolvedImport, RemotedResolvedImport>((a) => a.Import(this.Linker)); 159=> this.Linker.ImportCollection<ProjectProperty, MockProjectPropertyLinkRemoter>(this.Proxy.AllEvaluatedProperties); 161=> this.Linker.ImportCollection<ProjectMetadata, MockProjectMetadataLinkRemoter>(this.Proxy.AllEvaluatedItemDefinitionMetadata); 164=> this.Linker.ImportCollection<ProjectItem, MockProjectItemLinkRemoter>(this.Proxy.AllEvaluatedItems); 166public override string ToolsVersion => this.Proxy.ToolsVersion; 168public override string SubToolsetVersion => this.Proxy.SubToolsetVersion; 170public override bool SkipEvaluation { get => this.Proxy.SkipEvaluation; set => this.Proxy.SkipEvaluation = value; } 171public override bool DisableMarkDirty { get => this.Proxy.DisableMarkDirty; set => this.Proxy.DisableMarkDirty = value; } 172public override bool IsBuildEnabled { get => this.Proxy.IsBuildEnabled; set => this.Proxy.IsBuildEnabled = value; } 174public override int LastEvaluationId => this.Proxy.LastEvaluationId; 177=> this.Linker.ImportCollection<ProjectItem, MockProjectItemLinkRemoter>(this.Proxy.AddItem(itemType, unevaluatedInclude, metadata)); 180=> this.Linker.ImportCollection<ProjectItem, MockProjectItemLinkRemoter>(this.Proxy.AddItemFast(itemType, unevaluatedInclude, metadata)); 189public override string ExpandString(string unexpandedValue) => this.Proxy.ExpandString(unexpandedValue); 218=> this.Linker.ImportCollection<ProjectItem, MockProjectItemLinkRemoter>(this.Proxy.GetItems(itemType)); 220=> this.Linker.ImportCollection<ProjectItem, MockProjectItemLinkRemoter>(this.Proxy.GetItemsByEvaluatedInclude(evaluatedInclude)); 223=> this.Linker.ImportCollection<ProjectItem, MockProjectItemLinkRemoter>(this.Proxy.GetItemsIgnoringCondition(itemType)); 226=> this.Linker.ImportCollection<ProjectElement>(this.Proxy.GetLogicalProject()); 228public override ProjectProperty GetProperty(string name) => this.Linker.Import<ProjectProperty, MockProjectPropertyLinkRemoter>(this.Proxy.GetProperty(name)); 229public override string GetPropertyValue(string name) => this.Proxy.GetPropertyValue(name); 230public override void MarkDirty() => this.Proxy.MarkDirty(); 231public override void ReevaluateIfNecessary(EvaluationContext evaluationContext) => this.Proxy.ReevaluateIfNecessary(evaluationContext); 232public override bool RemoveGlobalProperty(string name) => this.Proxy.RemoveGlobalProperty(name); 235=> this.Proxy.RemoveItem(this.Linker.Export<ProjectItem, MockProjectItemLinkRemoter>(item)); 238=> this.Proxy.RemoveItems(this.Linker.ExportCollection<ProjectItem, MockProjectItemLinkRemoter>(items)); 240public override bool RemoveProperty(ProjectProperty property) => this.Proxy.RemoveProperty(this.Linker.Export<ProjectProperty, MockProjectPropertyLinkRemoter>(property)); 241public override void SaveLogicalProject(TextWriter writer) => this.Proxy.SaveLogicalProject(writer); 243public override bool SetGlobalProperty(string name, string escapedValue) => this.Proxy.SetGlobalProperty(name, escapedValue); 245public override ProjectProperty SetProperty(string name, string unevaluatedValue) => this.Linker.Import<ProjectProperty, MockProjectPropertyLinkRemoter>(this.Proxy.SetProperty(name, unevaluatedValue)); 247public override void Unload() => this.Proxy.Unload();