public void Should_parse_multiple_target_Frameworks() { var doc = new XmlDocument(); doc.LoadXml(MultiTargetFramework); MsBuildHelpers.GetTargetFrameworks(doc).Should().BeEquivalentTo(new[] { "net452", "netcoreapp1.1" }); }
public void Should_not_throw_when_no_target_Framework_found() { var doc = new XmlDocument(); doc.LoadXml(NoTargetFramework); MsBuildHelpers.GetTargetFrameworks(doc).Should().BeNull(); }