83 references to IsDirty
Microsoft.Build (1)
ObjectModelRemoting\DefinitionObjectsLinks\ProjectLink.cs (1)
34/// Access to remote <see cref="Project.IsDirty"/>.
Microsoft.Build.Engine.OM.UnitTests (82)
Construction\ProjectMetadataElement_Tests.cs (14)
579Assert.True(project.IsDirty); 622Assert.True(project.IsDirty); 696Assert.True(project.IsDirty); 739Assert.True(project.IsDirty); 825Assert.True(project.IsDirty); 888Assert.True(project.IsDirty); 958Assert.True(project.IsDirty); 1001Assert.True(project.IsDirty); 1070Assert.True(project.IsDirty); 1110Assert.True(project.IsDirty); 1181Assert.True(project.IsDirty); 1188Assert.True(project.IsDirty); 1228Assert.True(project.IsDirty); 1235Assert.True(project.IsDirty);
Construction\WhiteSpacePreservation_Tests.cs (2)
44Assert.True(p.IsDirty); 106Assert.True(p.IsDirty);
Definition\DefinitionEditing_Tests.cs (3)
1575Assert.True(project.IsDirty); 1579Assert.False(project.IsDirty); 2606Assert.False(project.IsDirty, "project should not be dirty after item splitting threw exception");
Definition\Project_Tests.cs (20)
865project.IsDirty.ShouldBeTrue(); 935project.IsDirty.ShouldBeTrue(); 970project.IsDirty.ShouldBeTrue(); 999project.IsDirty.ShouldBeTrue(); 1014project.IsDirty.ShouldBeTrue(); 1018project.IsDirty.ShouldBeFalse(); 1037project.IsDirty.ShouldBeTrue(); 1053project.IsDirty.ShouldBeFalse(); 1407project.IsDirty.ShouldBeTrue(); 1530project.IsDirty.ShouldBeFalse(); 1536project.IsDirty.ShouldBeTrue(); 1540project.IsDirty.ShouldBeFalse(); 1613project.IsDirty.ShouldBeFalse(); 1618project.IsDirty.ShouldBeTrue(); 1622project.IsDirty.ShouldBeFalse(); 1638project.IsDirty.ShouldBeFalse(); 1644project.IsDirty.ShouldBeTrue(); 1648project.IsDirty.ShouldBeFalse(); 2186project.IsDirty.ShouldBeFalse(); // "1" // was evaluated on load 2203project.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)
1879Assert.True(project.IsDirty); 1902Assert.True(project.IsDirty); 1937Assert.False(project.IsDirty); 1974Assert.True(project.IsDirty); 2028Assert.True(project.IsDirty); 2222Assert.False(project.IsDirty); 2226Assert.True(project.IsDirty); 2282Assert.False(project.IsDirty); 2286Assert.True(project.IsDirty);
Definition\ProjectMetadata_Tests.cs (4)
58Assert.False(project.IsDirty); 63Assert.True(project.IsDirty); 96Assert.False(project.IsDirty); 100Assert.False(project.IsDirty);
Definition\ProjectProperty_Tests.cs (3)
94Assert.True(project.IsDirty); 111Assert.True(project.IsDirty); 127Assert.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;