Exemple #1
0
        public void Should_parse_multiple_target_Frameworks()
        {
            var doc = new XmlDocument();

            doc.LoadXml(MultiTargetFramework);
            MsBuildHelpers.GetTargetFrameworks(doc).Should().BeEquivalentTo(new[] { "net452", "netcoreapp1.1" });
        }
Exemple #2
0
        public void Should_not_throw_when_no_target_Framework_found()
        {
            var doc = new XmlDocument();

            doc.LoadXml(NoTargetFramework);
            MsBuildHelpers.GetTargetFrameworks(doc).Should().BeNull();
        }