Ejemplo n.º 1
0
        public void Test_FillVPackage()
        {
            NuGetDownloader n     = new NuGetDownloader();
            string          lastV = n.GetLatestVersionPackage("Newtonsoft.Json");
            var             p     = n.FillVPackage("Newtonsoft.Json", lastV);

            Assert.AreEqual(p.PackageId, "Newtonsoft.Json");
            Assert.IsFalse(p.Dependencies.IsEmpty());
        }
Ejemplo n.º 2
0
        public void Test_JsonSerializer()
        {
            JsonSerializerPackage s = new JsonSerializerPackage();
            NuGetDownloader       n = new NuGetDownloader();
            VPackage vp             = n.FillVPackage("Newtonsoft.Json", n.GetLatestVersionPackage("Newtonsoft.Json"));
            string   result         = s.JsonSerializer(vp);

            JObject rss = JObject.Parse(result);

            Console.WriteLine(rss);
            Assert.Pass();
        }