public void PackageSourcesNotChanged()
        {
            bool r = VsPackageSourceProvider.PackageSourcesEqual(
                new List <PackageSource>()
            {
                new PackageSource("a", "http://a", isEnabled: true),
                new PackageSource("b", "http://b", isEnabled: false)
            },
                new List <PackageSource>()
            {
                new PackageSource("a", "http://a", isEnabled: true),
                new PackageSource("b", "http://b", isEnabled: false)
            });

            Assert.True(r);
        }
        public void PackageSourcesChanged()
        {
            // Assert: names differ
            bool r = VsPackageSourceProvider.PackageSourcesEqual(
                new List <PackageSource>()
            {
                new PackageSource("a", "http://a", isEnabled: true),
                new PackageSource("b", "http://b", isEnabled: false)
            },
                new List <PackageSource>()
            {
                new PackageSource("a1", "http://a", isEnabled: true),
                new PackageSource("b", "http://b", isEnabled: false)
            });

            Assert.False(r);

            // Assert: sources differ
            r = VsPackageSourceProvider.PackageSourcesEqual(
                new List <PackageSource>()
            {
                new PackageSource("a", "http://a", isEnabled: true),
                new PackageSource("b", "http://b", isEnabled: false)
            },
                new List <PackageSource>()
            {
                new PackageSource("a", "http://a1", isEnabled: true),
                new PackageSource("b", "http://b", isEnabled: false)
            });
            Assert.False(r);

            // Assert: isEnabled differ
            r = VsPackageSourceProvider.PackageSourcesEqual(
                new List <PackageSource>()
            {
                new PackageSource("a", "http://a", isEnabled: true),
                new PackageSource("b", "http://b", isEnabled: false)
            },
                new List <PackageSource>()
            {
                new PackageSource("a", "http://a", isEnabled: false),
                new PackageSource("b", "http://b", isEnabled: false)
            });
            Assert.False(r);
        }