예제 #1
0
        public void GetTargetFrameworkJson(string targetFramework, string expected)
        {
            // Arrange
            var jsonFileContent = string.Format(
                @"{{
  ""frameworks"":
    {{""{0}"": {{}}}}
  }}", targetFramework);

            // Act
            var result = VsHelper.GetTargetFrameworkJsonContents(jsonFileContent);

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