public void ICanPerformA_PositiveAdditionalProppertiesXmlParsing_VersionFinderXmlParsing()
        {
            var capabilities = new List <KeyValuePair <string, string> >()
            {
                new KeyValuePair <string, string>("CAPABILITY_VERSION_1.2.0.0.LARGESKU-AMD64-134231", "CAPABILITY_VERSION_1.2.0.0.LARGESKU-AMD64-134231"),
                new KeyValuePair <string, string>("MyProperty", "MyProperty")
            };
            var versions = VersionFinderClient.ParseVersions(capabilities);

            Assert.AreEqual(1, versions.Count);
            Assert.AreEqual("1.2.0.0.LARGESKU-AMD64-134231", versions[0].Version);
        }
        public void ICanPerformA_PositiveCase_VersionFinderXmlParsing()
        {
            var capabilities = new List <KeyValuePair <string, string> >()
            {
                new KeyValuePair <string, string>("CAPABILITY_VERSION_1.2", "CAPABILITY_VERSION_1.2.0.0.LARGESKU-AMD64-134231"),
                new KeyValuePair <string, string>("CAPABILITY_VERSION_1.0", "CAPABILITY_VERSION_1.0"),
                new KeyValuePair <string, string>("CAPABILITY_VERSION_1.3", "CAPABILITY_VERSION_1.3.0.5.LARGESKU-AMD64-134231")
            };

            var versions = VersionFinderClient.ParseVersions(capabilities).Select(v => v.Version).ToList();

            Assert.AreEqual(3, versions.Count);
            Assert.AreEqual(1, versions.Count(version => version == "1.2"));
            Assert.AreEqual(1, versions.Count(version => version == "1.0"));
            Assert.AreEqual(1, versions.Count(version => version == "1.3"));
        }