コード例 #1
0
        public void UselessMissingPackages2_Test()
        {
            var comparer = new NuspecComparer();

            var nuspec  = new string[] { "package1", "package2", "package4" };
            var package = new string[] { "package1", "package2", "package3", "package4" };

            var result = comparer.CheckUselessPackages(nuspec, package);

            Assert.AreEqual(0, result.Count());
        }
コード例 #2
0
        public void CheckMissingPackages_Test()
        {
            var comparer = new NuspecComparer();

            var package = new string[] { "package1", "package2", "package3", "package4" };
            var nuspec  = new string[] { "package1", "package2", "package3" };

            var result = comparer.CheckMissingPackages(nuspec, package);

            Assert.AreEqual("package4", result.First());
            Assert.AreEqual(1, result.Count());
        }