Beispiel #1
0
        public void GetProjectSDKContent(string content, string expected)
        {
            // Arrange
            var CsprojFileContent = string.Format(
                @"{0}
  <PropertyGroup>
    <TargetFramework>netcoreapp3.1</TargetFramework>
  </PropertyGroup>
</Project>
", content);

            // Act
            var result = VsHelper.GetProjectSDKContent(CsprojFileContent);

            // Assert
            Assert.Equal(expected, result);
        }