Skip to content

Commit 807cb9d

Browse files
DanScottNIarturcic
authored andcommitted
Added new test for Razor Class Libraries.
1 parent b6e494f commit 807cb9d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/GitVersionCore.Tests/VersionConverters/ProjectFileUpdaterTests.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,24 @@ public void CanUpdateProjectFileWithStandardDesktopProjectFileXml(string xml)
8989

9090
canUpdate.ShouldBe(true);
9191
}
92+
93+
[TestCase(@"
94+
<Project Sdk=""Microsoft.NET.Sdk.Razor"">
95+
<PropertyGroup>
96+
<TargetFramework>netcoreapp3.1</TargetFramework>
97+
</PropertyGroup>
98+
</Project>
99+
")]
100+
[Category(NoMono)]
101+
[Description(NoMonoDescription)]
102+
public void CanUpdateProjectFileWithRazorClassLibraryProjectFileXml(string xml)
103+
{
104+
using var projectFileUpdater = new ProjectFileUpdater(log, fileSystem);
105+
106+
var canUpdate = projectFileUpdater.CanUpdateProjectFile(XElement.Parse(xml));
107+
108+
canUpdate.ShouldBe(true);
109+
}
92110

93111
[TestCase(@"
94112
<Project Sdk=""SomeOtherProject.Sdk"">

0 commit comments

Comments
 (0)