174 references to ViewValidation
Microsoft.Build.Engine.OM.UnitTests (174)
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (64)
174
ViewValidation
.Verify(viewResult, realResult);
221
ViewValidation
.VerifyFindType(view, real);
231
var real =
ViewValidation
.GetRealObject(view);
539
ViewValidation
.VerifySameLocation(realXml.ProjectFileLocation, viewXml.ProjectFileLocation, context);
540
ViewValidation
.VerifySameLocation(realXml.ToolsVersionLocation, viewXml.ToolsVersionLocation, context);
541
ViewValidation
.VerifySameLocation(realXml.DefaultTargetsLocation, viewXml.DefaultTargetsLocation, context);
542
ViewValidation
.VerifySameLocation(realXml.InitialTargetsLocation, viewXml.InitialTargetsLocation, context);
543
ViewValidation
.VerifySameLocation(realXml.SdkLocation, viewXml.SdkLocation, context);
544
ViewValidation
.VerifySameLocation(realXml.TreatAsLocalPropertyLocation, viewXml.TreatAsLocalPropertyLocation, context);
546
ViewValidation
.Verify(viewXml.ChooseElements, realXml.ChooseElements, Verify, context);
547
ViewValidation
.Verify(viewXml.ItemDefinitionGroups, realXml.ItemDefinitionGroups, Verify, context);
548
ViewValidation
.Verify(viewXml.ItemDefinitions, realXml.ItemDefinitions, Verify, context);
549
ViewValidation
.Verify(viewXml.ItemGroups, realXml.ItemGroups, Verify, context);
550
ViewValidation
.Verify(viewXml.Items, realXml.Items, Verify, context);
551
ViewValidation
.Verify(viewXml.ImportGroups, realXml.ImportGroups, Verify, context);
552
ViewValidation
.Verify(viewXml.Imports, realXml.Imports, Verify, context);
553
ViewValidation
.Verify(viewXml.PropertyGroups, realXml.PropertyGroups, Verify, context);
554
ViewValidation
.Verify(viewXml.Properties, realXml.Properties, Verify, context);
555
ViewValidation
.Verify(viewXml.Targets, realXml.Targets, Verify, context);
556
ViewValidation
.Verify(viewXml.UsingTasks, realXml.UsingTasks, Verify, context);
557
ViewValidation
.Verify(viewXml.ItemGroupsReversed, realXml.ItemGroupsReversed, Verify, context);
558
ViewValidation
.Verify(viewXml.ItemDefinitionGroupsReversed, realXml.ItemDefinitionGroupsReversed, Verify, context);
559
ViewValidation
.Verify(viewXml.ImportGroupsReversed, realXml.ImportGroupsReversed, Verify, context);
560
ViewValidation
.Verify(viewXml.PropertyGroupsReversed, realXml.PropertyGroupsReversed, Verify, context);
645
ViewValidation
.VerifySameLocation(realXml.ContinueOnErrorLocation, viewXml.ContinueOnErrorLocation, context);
647
ViewValidation
.VerifySameLocation(realXml.MSBuildRuntimeLocation, viewXml.MSBuildRuntimeLocation, context);
650
ViewValidation
.VerifySameLocation(realXml.MSBuildArchitectureLocation, viewXml.MSBuildArchitectureLocation, context);
652
ViewValidation
.Verify(viewXml.Outputs, realXml.Outputs,
ViewValidation
.Verify, context);
692
ViewValidation
.VerifySameLocation(rkvp.Value, vkvp.Value, context);
770
ViewValidation
.VerifySameLocation(realXml.AssemblyFileLocation, viewXml.AssemblyFileLocation, context);
773
ViewValidation
.VerifySameLocation(realXml.AssemblyNameLocation, viewXml.AssemblyNameLocation, context);
776
ViewValidation
.VerifySameLocation(realXml.TaskNameLocation, viewXml.TaskNameLocation, context);
779
ViewValidation
.VerifySameLocation(realXml.TaskFactoryLocation, viewXml.TaskFactoryLocation, context);
782
ViewValidation
.VerifySameLocation(realXml.RuntimeLocation, viewXml.RuntimeLocation, context);
785
ViewValidation
.VerifySameLocation(realXml.ArchitectureLocation, viewXml.ArchitectureLocation, context);
787
ViewValidation
.Verify(viewXml.TaskBody, realXml.TaskBody, context);
788
ViewValidation
.Verify(viewXml.ParameterGroup, realXml.ParameterGroup, context);
802
ViewValidation
.VerifySameLocation(realXml.NameLocation, viewXml.NameLocation, context);
804
ViewValidation
.VerifySameLocation(realXml.InputsLocation, viewXml.InputsLocation, context);
806
ViewValidation
.VerifySameLocation(realXml.OutputsLocation, viewXml.OutputsLocation, context);
808
ViewValidation
.VerifySameLocation(realXml.KeepDuplicateOutputsLocation, viewXml.KeepDuplicateOutputsLocation, context);
810
ViewValidation
.VerifySameLocation(realXml.DependsOnTargetsLocation, viewXml.DependsOnTargetsLocation, context);
812
ViewValidation
.VerifySameLocation(realXml.BeforeTargetsLocation, viewXml.BeforeTargetsLocation, context);
814
ViewValidation
.VerifySameLocation(realXml.AfterTargetsLocation, viewXml.AfterTargetsLocation, context);
816
ViewValidation
.VerifySameLocation(realXml.ReturnsLocation, viewXml.ReturnsLocation, context);
818
ViewValidation
.Verify(viewXml.ItemGroups, realXml.ItemGroups,
ViewValidation
.Verify, context);
819
ViewValidation
.Verify(viewXml.PropertyGroups, realXml.PropertyGroups,
ViewValidation
.Verify, context);
820
ViewValidation
.Verify(viewXml.OnErrors, realXml.OnErrors,
ViewValidation
.Verify, context);
821
ViewValidation
.Verify(viewXml.Tasks, realXml.Tasks,
ViewValidation
.Verify, context);
835
ViewValidation
.VerifySameLocation(realXml.ProjectLocation, viewXml.ProjectLocation, context);
842
ViewValidation
.VerifySameLocation(realXml.SdkLocation, viewXml.SdkLocation, context);
844
ViewValidation
.VerifyProjectElement(viewXml.OriginalElement, realXml.OriginalElement, context);
856
ViewValidation
.Verify(viewXml.Imports, realXml.Imports,
ViewValidation
.Verify, context);
869
ViewValidation
.Verify(viewXml.Metadata, realXml.Metadata,
ViewValidation
.Verify, context);
881
ViewValidation
.Verify(viewXml.ItemDefinitions, realXml.ItemDefinitions,
ViewValidation
.Verify, context);
903
Verify(viewXml.Metadata, realXml.Metadata,
ViewValidation
.Verify, context);
ObjectModelRemoting\Helpers\ViewValidation.cs (3)
25
ViewValidation
.VerifyLinkedNotNull(view);
26
ViewValidation
.VerifyNotLinkedNotNull(real);
93
ViewValidation
.VerifyFindType(this.View, this.Real);
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (3)
71
ViewValidation
.Verify(viewItems, realItems,
ViewValidation
.Verify, new ValidationContext(this));
91
ViewValidation
.Verify(view, real, new ValidationContext(this));
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (5)
48
ViewValidation
.Verify(newView, newReal);
85
ViewValidation
.VerifyMetadata(itemMetadata, (k) => itemWithMetadata1.View.Metadata.Where((md) => md.Name == k).FirstOrDefault().Value);
134
ViewValidation
.IsLinkedObject(clone);
707
ViewValidation
.VerifyMetadata(itemMetadata, (k) => itemWithMetadata1.View.Metadata.Where((md) => md.Name == k).FirstOrDefault().Value);
708
ViewValidation
.VerifyMetadata(itemMetadata, (k) => itemWithMetadata2.View.Metadata.Where((md) => md.Name == k).FirstOrDefault().Value);
ObjectModelRemoting\LinkedConstructionReadOnly_Tests.cs (45)
39
ViewValidation
.VerifyNotLinkedNotNull(this.RealXml);
40
ViewValidation
.VerifyLinkedNotNull(this.ViewXml);
52
ViewValidation
.VerifyLinkedNotNull(this.ViewXml);
72
ViewValidation
.Verify(preView, preReal);
83
ViewValidation
.Verify(preView.ChooseElements, preReal.ChooseElements,
ViewValidation
.Verify);
97
ViewValidation
.Verify(viewExtensionsList, realExtensionsList,
ViewValidation
.Verify);
118
ViewValidation
.Verify(viewImports, realImports,
ViewValidation
.Verify);
131
ViewValidation
.Verify(viewImportGroups, realImportGroups,
ViewValidation
.Verify);
144
ViewValidation
.Verify(viewlItemDefinitions, realItemDefinitions);
157
ViewValidation
.Verify(viewlItemDefinitionGroups, realItemDefinitionGroups,
ViewValidation
.Verify);
170
ViewValidation
.Verify(viewlItems, realItems,
ViewValidation
.Verify);
183
ViewValidation
.Verify(viewItemGroups, realItemGroups,
ViewValidation
.Verify);
196
ViewValidation
.Verify(viewProperties, realProperties,
ViewValidation
.Verify);
209
ViewValidation
.Verify(viewPropertieGroups, realPropertieGroups,
ViewValidation
.Verify);
222
ViewValidation
.Verify(viewCollection, realCollection,
ViewValidation
.Verify);
235
ViewValidation
.Verify(viewCollection, realCollection,
ViewValidation
.Verify);
248
ViewValidation
.Verify(viewCollection, realCollection,
ViewValidation
.Verify);
261
ViewValidation
.Verify(viewCollection, realCollection,
ViewValidation
.Verify);
274
ViewValidation
.Verify(viewCollection, realCollection,
ViewValidation
.Verify);
288
ViewValidation
.Verify(viewCollection, realCollection,
ViewValidation
.Verify);
301
ViewValidation
.Verify(viewCollection, realCollection,
ViewValidation
.Verify);
314
ViewValidation
.Verify(viewCollection, realCollection,
ViewValidation
.Verify);
327
ViewValidation
.Verify(viewCollection, realCollection,
ViewValidation
.Verify);
340
ViewValidation
.Verify(viewCollection, realCollection,
ViewValidation
.Verify);
353
ViewValidation
.Verify(viewCollection, realCollection,
ViewValidation
.Verify);
ObjectModelRemoting\LinkedEvaluationModify_Tests.cs (20)
43
ViewValidation
.Verify(viewProj, realProj);
102
ViewValidation
.Verify(viewProj, realProj);
117
ViewValidation
.Verify(pair);
154
ViewValidation
.Verify(pair);
165
ViewValidation
.Verify(barWithMetadataViewFast, barWithMetadataRealFast, validationContext);
180
ViewValidation
.Verify(barWithMetadataView, barWithMetadataReal, validationContext);
199
ViewValidation
.Verify(fooWithMetadataViewFast, fooWithMetadataRealFast, validationContext);
218
ViewValidation
.Verify(fooViewFast, fooRealFast, validationContext);
234
ViewValidation
.Verify(fooView, fooReal, validationContext);
240
ViewValidation
.Verify(fooView, fooReal, validationContext);
247
ViewValidation
.Verify(fooView, fooReal, validationContext);
254
ViewValidation
.Verify(fooView, fooReal, validationContext);
259
ViewValidation
.Verify(fooView, fooReal, validationContext);
272
ViewValidation
.Verify(fooView, fooReal, validationContext);
284
ViewValidation
.Verify(fooView, fooReal, validationContext);
294
ViewValidation
.Verify(fooView, fooReal, validationContext);
298
ViewValidation
.Verify(pair);
313
ViewValidation
.Verify(pair);
349
ViewValidation
.Verify(pair);
376
ViewValidation
.Verify(pair);
ObjectModelRemoting\LinkedEvaluationReadOnly_Tests.cs (9)
33
ViewValidation
.VerifyNotLinkedNotNull(this.Real);
34
ViewValidation
.VerifyLinkedNotNull(this.View);
46
ViewValidation
.VerifyLinkedNotNull(this.View);
62
ViewValidation
.Verify(this.StdGroup.View, this.StdGroup.Real);
72
ViewValidation
.Verify(viewItems, realItems);
82
ViewValidation
.Verify(viewItemDefinitions, realItemDefinitions,
ViewValidation
.Verify);
92
ViewValidation
.Verify(viewProperties, realProperties);
102
ViewValidation
.Verify(viewMetadata, realMetadata);
ObjectModelRemoting\LinkedProjectCollection_Tests.cs (20)
38
ViewValidation
.VerifyNotLinkedNotNull(proj1);
39
ViewValidation
.VerifyNotLinkedNotNull(proj2);
60
ViewValidation
.VerifyLinkedNotNull(remoteProj);
112
ViewValidation
.VerifyLinkedNotNull(p);
118
ViewValidation
.VerifyLinkedNotNull(prj3Coll.FirstOrDefault());
164
ViewValidation
.VerifyProjectCollectionLinks(this.StdGroup.Local.Collection.LoadedProjects, 1, 0);
165
ViewValidation
.VerifyProjectCollectionLinks(this.StdGroup.Remote[0].Collection.LoadedProjects, 0, 1);
166
ViewValidation
.VerifyProjectCollectionLinks(this.StdGroup.Remote[1].Collection.LoadedProjects, 0, 1);
172
ViewValidation
.VerifyProjectCollectionLinks(this.StdGroup.Local.Collection.LoadedProjects, 2, 0);
173
ViewValidation
.VerifyProjectCollectionLinks(this.StdGroup.Remote[0].Collection.LoadedProjects, 0, 2);
174
ViewValidation
.VerifyProjectCollectionLinks(this.StdGroup.Remote[1].Collection.LoadedProjects, 0, 2);
180
ViewValidation
.VerifyProjectCollectionLinks(this.StdGroup.Local.Collection.LoadedProjects, 2, 1);
181
ViewValidation
.VerifyProjectCollectionLinks(this.StdGroup.Remote[0].Collection.LoadedProjects, 1, 2);
182
ViewValidation
.VerifyProjectCollectionLinks(this.StdGroup.Remote[1].Collection.LoadedProjects, 0, 3);
189
ViewValidation
.VerifyProjectCollectionLinks(this.StdGroup.Local.Collection.LoadedProjects, 2, 2);
190
ViewValidation
.VerifyProjectCollectionLinks(this.StdGroup.Remote[0].Collection.LoadedProjects, 1, 3);
191
ViewValidation
.VerifyProjectCollectionLinks(this.StdGroup.Remote[1].Collection.LoadedProjects, 1, 3);
198
ViewValidation
.VerifyProjectCollectionLinks(this.StdGroup.Local.Collection.LoadedProjects, 0, 2);
199
ViewValidation
.VerifyProjectCollectionLinks(this.StdGroup.Remote[0].Collection.LoadedProjects, 1, 1);
200
ViewValidation
.VerifyProjectCollectionLinks(this.StdGroup.Remote[1].Collection.LoadedProjects, 1, 1);
ObjectModelRemoting\LinkedSpecialCasesScenarios.cs (5)
85
ViewValidation
.Verify(newView, newReal);
113
var sourceIsALink =
ViewValidation
.IsLinkedObject(sourceProject);
114
ViewValidation
.VerifyNotNull(cloned, sourceIsALink);
161
var realExistingItemGroup =
ViewValidation
.GetRealObject(existingItemGroup);
194
ViewValidation
.Verify(newDeepCopy.View, realExistingItemGroup, context);