public void Case3()
        {
            var packageInputLines = new string[] { };
            var installationDependencyResolver = new InstallationDependencyResolver();
            var result = installationDependencyResolver.Resolver(packageInputLines);

            Assert.That(result, Is.EqualTo(""));
        }
        public void NotValidPackage()
        {
            var packageInputLines = new[]
            {
                "Leetmeme: Unknown"
            };


            var installationDependencyResolver = new InstallationDependencyResolver();

            Assert.Throws <Exception>(() => installationDependencyResolver.Resolver(packageInputLines));
        }
        public void Case4()
        {
            var packageInputLines = new[]
            {
                "A: C",
                "B: D",
                "C: E",
                "D: ",
                "E: B",
                "F: D"
            };
            var installationDependencyResolver = new InstallationDependencyResolver();
            var result = installationDependencyResolver.Resolver(packageInputLines);

            Assert.That(result, Is.EqualTo("D, B, E, C, F, A"));
        }
        public void CyclcicDep()
        {
            var packageInputLines = new[]
            {
                "KittenService: ",
                "Leetmeme: Cyberportal",
                "Cyberportal: Ice",
                "CamelCaser: KittenService",
                "Fraudstream: ",
                "Ice: Leetmeme"
            };

            //assert
            var installationDependencyResolver = new InstallationDependencyResolver();

            Assert.Throws <Exception>(() => installationDependencyResolver.Resolver(packageInputLines));
        }
        public void Case1()
        {
            var packageInputLines = new[]
            {
                "KittenService: ",
                "Leetmeme: Cyberportal",
                "Cyberportal: Ice",
                "CamelCaser: KittenService",
                "Fraudstream: Leetmeme",
                "Ice: "
            };



            var installationDependencyResolver = new InstallationDependencyResolver();
            var result = installationDependencyResolver.Resolver(packageInputLines);

            Assert.That(result, Is.EqualTo("KittenService, Ice, Cyberportal, Leetmeme, CamelCaser, Fraudstream"));
        }
        public void Case2()
        {
            var packageInputLines = new[]
            {
                "A: F",
                "B: A",
                "C: B",
                "D: C",
                "E: D",
                "F: "
            };



            var installationDependencyResolver = new InstallationDependencyResolver();
            var result = installationDependencyResolver.Resolver(packageInputLines);

            Assert.That(result, Is.EqualTo("F, A, B, C, D, E"));
        }