83 references to IsDirty
Microsoft.Build (1)
ObjectModelRemoting\DefinitionObjectsLinks\ProjectLink.cs (1)
32/// Access to remote <see cref="Project.IsDirty"/>.
Microsoft.Build.Engine.OM.UnitTests (82)
Construction\ProjectMetadataElement_Tests.cs (14)
578Assert.True(project.IsDirty); 621Assert.True(project.IsDirty); 695Assert.True(project.IsDirty); 738Assert.True(project.IsDirty); 824Assert.True(project.IsDirty); 887Assert.True(project.IsDirty); 957Assert.True(project.IsDirty); 1000Assert.True(project.IsDirty); 1069Assert.True(project.IsDirty); 1109Assert.True(project.IsDirty); 1180Assert.True(project.IsDirty); 1187Assert.True(project.IsDirty); 1227Assert.True(project.IsDirty); 1234Assert.True(project.IsDirty);
Construction\WhiteSpacePreservation_Tests.cs (2)
45Assert.True(p.IsDirty); 107Assert.True(p.IsDirty);
Definition\DefinitionEditing_Tests.cs (3)
1573Assert.True(project.IsDirty); 1577Assert.False(project.IsDirty); 2604Assert.False(project.IsDirty, "project should not be dirty after item splitting threw exception");
Definition\Project_Tests.cs (20)
864project.IsDirty.ShouldBeTrue(); 934project.IsDirty.ShouldBeTrue(); 969project.IsDirty.ShouldBeTrue(); 998project.IsDirty.ShouldBeTrue(); 1013project.IsDirty.ShouldBeTrue(); 1017project.IsDirty.ShouldBeFalse(); 1036project.IsDirty.ShouldBeTrue(); 1052project.IsDirty.ShouldBeFalse(); 1406project.IsDirty.ShouldBeTrue(); 1529project.IsDirty.ShouldBeFalse(); 1535project.IsDirty.ShouldBeTrue(); 1539project.IsDirty.ShouldBeFalse(); 1612project.IsDirty.ShouldBeFalse(); 1617project.IsDirty.ShouldBeTrue(); 1621project.IsDirty.ShouldBeFalse(); 1637project.IsDirty.ShouldBeFalse(); 1643project.IsDirty.ShouldBeTrue(); 1647project.IsDirty.ShouldBeFalse(); 2185project.IsDirty.ShouldBeFalse(); // "1" // was evaluated on load 2202project.IsDirty.ShouldBeTrue(); // "2" // Dirty for reevaluation, because the project now has gotten a new file name
Definition\ProjectCollection_Tests.cs (6)
624Assert.True(project1.IsDirty); 643Assert.True(project1.IsDirty); 647Assert.True(project2.IsDirty); 660Assert.True(project1.IsDirty); 661Assert.True(project2.IsDirty); 689Assert.True(project1.IsDirty);
Definition\ProjectItem_Tests.cs (9)
1877Assert.True(project.IsDirty); 1900Assert.True(project.IsDirty); 1935Assert.False(project.IsDirty); 1972Assert.True(project.IsDirty); 2026Assert.True(project.IsDirty); 2220Assert.False(project.IsDirty); 2224Assert.True(project.IsDirty); 2280Assert.False(project.IsDirty); 2284Assert.True(project.IsDirty);
Definition\ProjectMetadata_Tests.cs (4)
57Assert.False(project.IsDirty); 62Assert.True(project.IsDirty); 95Assert.False(project.IsDirty); 99Assert.False(project.IsDirty);
Definition\ProjectProperty_Tests.cs (3)
93Assert.True(project.IsDirty); 110Assert.True(project.IsDirty); 126Assert.False(project.IsDirty);
Definition\ProtectImports_Tests.cs (10)
247Assert.True(project.IsDirty); // "Project was not marked dirty." 261Assert.True(project.IsDirty); // "Project was not marked dirty." 275Assert.True(project.IsDirty); // "Project was not marked dirty." 289Assert.True(project.IsDirty); // "Project was not marked dirty." 367Assert.True(project.IsDirty); // "Project was not marked dirty." 382Assert.True(project.IsDirty); // "Project was not marked dirty." 398Assert.True(project.IsDirty); // "Project was not marked dirty." 412Assert.True(project.IsDirty); // "Project was not marked dirty." 460Assert.True(project.IsDirty); // "Project was not marked dirty." 474Assert.True(project.IsDirty); // "Project was not marked dirty."
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (2)
371Assert.Equal(real.IsDirty, view.IsDirty);
ObjectModelRemoting\LinkedEvaluationModify_Tests.cs (8)
53Assert.False(realProj.IsDirty); 54Assert.False(viewProj.IsDirty); 58Assert.True(realProj.IsDirty); 59Assert.True(viewProj.IsDirty); 63Assert.True(realProj.IsDirty); 64Assert.True(viewProj.IsDirty); 77Assert.False(realProj.IsDirty); 78Assert.False(viewProj.IsDirty);
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectLink.cs (1)
32public bool IsDirty => this.Source.IsDirty;