1 write to Real
Microsoft.Build.Engine.OM.UnitTests (1)
ObjectModelRemoting\Helpers\ViewValidation.cs (1)
28
this.
Real
= real;
67 references to Real
Microsoft.Build.Engine.OM.UnitTests (67)
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (4)
163
foreach (var r in getter(this.
Real
))
188
Assert.True(this.
Real
is ProjectElementContainer);
211
public ProjectXmlPair(ProjectPair pair) : base(null, pair.View.Xml, pair.
Real
.Xml) { this.Project = pair; this.PRE = this; }
219
var real = creator(this.
Real
);
ObjectModelRemoting\Helpers\ViewValidation.cs (15)
31
public T Get(ObjectType type) => type == ObjectType.Real ? this.
Real
: this.View;
38
Assert.NotEqual((object)this.
Real
, (object)other.
Real
);
44
Assert.Equal((object)this.
Real
, (object)other.
Real
);
49
var current = getter(this.
Real
);
56
Assert.Equal(!current, getter(this.
Real
));
59
setter(this.
Real
, current);
62
Assert.Equal(current, getter(this.
Real
));
66
Assert.Equal(finalValue, getter(this.
Real
));
72
var current = getter(this.
Real
);
81
Assert.Equal(newValue1, getter(this.
Real
));
84
setter(this.
Real
, newValue);
87
Assert.Equal(newValue, getter(this.
Real
));
93
ViewValidation.VerifyFindType(this.View, this.
Real
);
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (8)
24
Assert.Equal(value, this.
Real
.GetPropertyValue(name));
68
var realItems = this.
Real
.GetItemsByEvaluatedInclude(evaluatedInclude);
90
var real = this.
Real
.GetProperty(name);
124
Assert.Same(context.Pair.
Real
, real.Project);
157
Assert.Same(context?.Pair.
Real
, real.Project);
201
Assert.Same(context?.Pair.
Real
, real.Project);
251
Assert.Same(context.Pair.
Real
, real.Project);
328
var real = pair.
Real
;
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (26)
185
newTarget1.
Real
.Name = NewTargetRenamed.Ver(2);
197
Assert.ThrowsAny<ArgumentException>(() => newTarget1.
Real
.RemoveChild(newTask2.
Real
));
199
newTarget1.
Real
.RemoveChild(newTask1.
Real
);
276
newTask.
Real
.RemoveParameter(paramName.Ver(5));
285
Assert.False(newTask.
Real
.Parameters.ContainsKey(paramName.Ver(1)));
287
Assert.False(newTask.
Real
.Parameters.ContainsKey(paramName.Ver(5)));
296
Assert.ThrowsAny<ArgumentException>(() => newTask.
Real
.RemoveChild(newOutputItem2.
Real
));
298
newTask.
Real
.RemoveChild(newOutputItemWithConfig2.
Real
);
303
newTask.
Real
.RemoveChild(newOutputProp2.
Real
);
379
Assert.NotSame(choose.
Real
, chooseCreataed.
Real
);
393
Assert.Same(otherWise.
Real
, choose.
Real
.OtherwiseElement);
433
when.
Real
.RemoveChild(choose1.
Real
);
471
otherwise.
Real
.RemoveChild(choose1.
Real
);
502
Assert.Same(body.
Real
, usingTaskFile.
Real
.TaskBody);
507
Assert.Same(pg.
Real
, usingTaskFile.
Real
.ParameterGroup);
ObjectModelRemoting\LinkedEvaluationModify_Tests.cs (10)
168
pair.
Real
.RemoveItem(barWithMetadataViewFast);
185
pair.
Real
.RemoveItems(toRemoveView);
209
pair.
Real
.RemoveItem(fooWithMetadataRealFast);
226
pair.
Real
.RemoveItems(toRemoveReal);
322
Assert.True(pair.
Real
.GlobalProperties.ContainsKey("gp1"));
330
pair.
Real
.SetGlobalProperty("Configuration", "Foo");
354
var fooReal = pair.
Real
.GetProperty("fooProp");
357
pair.
Real
.SetGlobalProperty("xxx", "XXX");
359
pair.
Real
.ReevaluateIfNecessary();
363
var fooRealNew = pair.
Real
.GetProperty("fooProp");
ObjectModelRemoting\LinkedSpecialCasesScenarios.cs (4)
124
xmlPair.QueryChildrenWithValidation<ProjectItemGroupElement>((ig) => ig == cloned || ig == clonedPair.
Real
, 0);
128
Assert.True(xmlPair.
Real
.HasUnsavedChanges);
130
clonedPair.VerifySame(xmlPair.QuerySingleChildrenWithValidation<ProjectItemGroupElement>((ig) => ig == clonedPair.View || ig == clonedPair.
Real
));
189
Assert.NotSame(realExistingItemGroup, newDeepCopy.
Real
);