-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Tests only] Refactor PropertiesUsageAnalyzerTest (#10511)
* Refactor tests * Fix failing test
- Loading branch information
1 parent
fa47509
commit 3b1da00
Showing
6 changed files
with
70 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/BuildCheck.UnitTests/TestAssets/SampleCheckIntegrationTest/PropsCheckTest.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<Project DefaultTargets="PrintEnvVar"> | ||
<PropertyGroup> | ||
<!-- | ||
<MyProp1>value-of-prop1</MyProp1> | ||
<MyProp2>$(MyProp1)</MyProp2> | ||
<MyProp3>blah</MyProp3> | ||
--> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(MyProp12)' == ''"> | ||
<MyProp13>$(MyProp11)</MyProp13> | ||
</PropertyGroup> | ||
|
||
<!-- | ||
<ItemGroup> | ||
<a Include="$(nonexistent)" /> | ||
</ItemGroup> | ||
--> | ||
|
||
<Target Name="PrintEnvVar"> | ||
<Message Text="MyPropT2 has value $(MyPropT2)" Importance="High" Condition="'$(MyPropT2)' == ''" /> | ||
<PropertyGroup> | ||
<MyPropT2>$(MyPropT2);xxx</MyPropT2> | ||
</PropertyGroup> | ||
</Target> | ||
</Project> |