public void TestReadManifestValid()
        {
            WriteManifest(MANIFEST_SIMPLE);
            Assert.That(modifier.GetManifestJson(), Is.Empty);
            Assert.That(modifier.ReadManifest(), Is.EqualTo(true));
            Assert.That(modifier.GetManifestJson(), Is.EqualTo(MANIFEST_SIMPLE));

            var expected = new Dictionary <string, object>()
            {
                {
                    "dependencies",
                    new Dictionary <string, object>()
                    {
                        { "com.bar.foo", "1.2.3" }
                    }
                },
                {
                    "scopedRegistries",
                    new List <Dictionary <string, object> >()
                    {
                        new Dictionary <string, object>()
                        {
                            { "name", "A UPM Registry" },
                            { "url", "https://unity.foobar.com" },
                            {
                                "scopes",
                                new List <string>()
                                {
                                    "foobar.unity.voxels"
                                }
                            }
                        }
                    }
                }
            };

            CollectionAssert.AreEquivalent(modifier.manifestDict, expected);
        }
        public void TestReadManifestValid()
        {
            WriteManifest("{\n" +
                          "  \"scopedRegistries\": [\n" +
                          "    {\n" +
                          "      \"name\": \"A UPM Registry\",\n" +
                          "      \"url\": \"https://unity.foobar.com\",\n" +
                          "      \"scopes\": [\n" +
                          "        \"foobar.unity.voxels\"\n" +
                          "      ]\n" +
                          "    }\n" +
                          "  ]\n" +
                          "}\n");
            Assert.That(modifier.ReadManifest(), Is.EqualTo(true));

            var expected = new Dictionary <string, object>()
            {
                {
                    "scopedRegistries",
                    new List <Dictionary <string, object> >()
                    {
                        new Dictionary <string, object>()
                        {
                            { "name", "A UPM Registry" },
                            { "url", "https://unity.foobar.com" },
                            {
                                "scopes",
                                new List <string>()
                                {
                                    "foobar.unity.voxels"
                                }
                            }
                        }
                    }
                }
            };

            CollectionAssert.AreEquivalent(modifier.manifestDict, expected);
        }