File tree 1 file changed +14
-3
lines changed
src/GitVersion.Core.Tests/VersionConverters
1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -40,16 +40,28 @@ public void Setup()
40
40
</PropertyGroup>
41
41
</Project>
42
42
" ) ]
43
+ [ Category ( NoMono ) ]
44
+ [ Description ( NoMonoDescription ) ]
45
+ public void CanUpdateProjectFileWithStandardProjectFileXml ( string xml )
46
+ {
47
+ using var projectFileUpdater = new ProjectFileUpdater ( log , fileSystem ) ;
48
+
49
+ var canUpdate = projectFileUpdater . CanUpdateProjectFile ( XElement . Parse ( xml ) ) ;
50
+
51
+ canUpdate . ShouldBe ( true ) ;
52
+ }
53
+
43
54
[ TestCase ( @"
44
55
<Project Sdk=""Microsoft.NET.Sdk.Worker"">
45
56
<PropertyGroup>
46
- <TargetFramework>net5.0</TargetFramework>
57
+ <OutputType>Exe</OutputType>
58
+ <TargetFramework>netcoreapp3.1</TargetFramework>
47
59
</PropertyGroup>
48
60
</Project>
49
61
" ) ]
50
62
[ Category ( NoMono ) ]
51
63
[ Description ( NoMonoDescription ) ]
52
- public void CanUpdateProjectFileWithStandardProjectFileXml ( string xml )
64
+ public void CanUpdateProjectFileWithStandardWorkerProjectFileXml ( string xml )
53
65
{
54
66
using var projectFileUpdater = new ProjectFileUpdater ( log , fileSystem ) ;
55
67
@@ -292,7 +304,6 @@ public void UpdateProjectXmlVersionElementWithDuplicatePropertyGroupsModifiesLas
292
304
</PropertyGroup>
293
305
</Project>"
294
306
) ]
295
-
296
307
[ Category ( NoMono ) ]
297
308
[ Description ( NoMonoDescription ) ]
298
309
public void UpdateProjectXmlVersionElementWithMultipleVersionElementsLastOneIsModified ( string xml )
You can’t perform that action at this time.
0 commit comments