public void SetUp()
        {
            theFilename = "Bottles.txt";
            var stream = GetType()
                .Assembly
                .GetManifestResourceStream(GetType(), "ProjectTemplate.txt");

            new FileSystem().WriteStreamToFile(theFilename, stream);

            theProj = new ProjFile(theFilename, null);

            theProj
                .References
                .ShouldHaveTheSameElementKeysAs(new[]
                {
                    "FubuCore", 
                    "Ionic.Zip", 
                    "Ionic.Zip, Version=1.9.1.8, Culture=neutral, processorArchitecture=MSIL",
                    "System",
                    "System.Core",
                    "System.Web",
                    "System.Xml",
                    "yeti"
                }, x => x.Include);

            theProj.RemoveDuplicateReferences();
            theProj.Write();

            theProj = null;
            theProj = new ProjFile(theFilename, null);
        }
        public void SetUp()
        {
            theFilename = "Bottles.txt";
            var stream = GetType()
                         .Assembly
                         .GetManifestResourceStream(GetType(), "ProjectTemplate.txt");

            new FileSystem().WriteStreamToFile(theFilename, stream);

            theProj = new ProjFile(theFilename, null);

            theProj
            .References
            .ShouldHaveTheSameElementKeysAs(new[]
            {
                "FubuCore",
                "Ionic.Zip",
                "Ionic.Zip, Version=1.9.1.8, Culture=neutral, processorArchitecture=MSIL",
                "System",
                "System.Core",
                "System.Web",
                "System.Xml",
                "yeti"
            }, x => x.Include);

            theProj.RemoveDuplicateReferences();
            theProj.Write();

            theProj = null;
            theProj = new ProjFile(theFilename, null);
        }
        public void SetUp()
        {
            theFilename = "Test.txt";
            var stream = GetType()
                         .Assembly
                         .GetManifestResourceStream(GetType(), "ProjectWithDuplicateRefs.txt");

            new FileSystem().WriteStreamToFile(theFilename, stream);

            theProj = new ProjFile(theFilename, null);

            theProj
            .References
            .ShouldHaveTheSameElementKeysAs(new[]
            {
                "Bottles",
                "FubuCore",
                "FubuLocalization",
                "FubuMVC.Core",
                "FubuMVC.Core.Assets",
                "FubuMVC.Core.UI",
                "FubuMVC.Core.View",
                "FubuMVC.JQueryUI",
                "FubuMVC.Media",
                "FubuMVC.StructureMap",
                "FubuTestingSupport",
                "HtmlTags",
                "Microsoft.CSharp",
                "nunit.framework",
                "nunit.framework, Version=2.5.10.11092, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL",
                "nunit.mocks",
                "nunit.mocks, Version=2.5.10.11092, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL",
                "pnunit.framework",
                "pnunit.framework, Version=1.0.4109.34242, Culture=neutral, processorArchitecture=MSIL",
                "Rhino.Mocks",
                "Rhino.Mocks, Version=3.6.0.0, Culture=neutral, PublicKeyToken=0b3305902db7183f, processorArchitecture=MSIL",
                "StructureMap",
                "StructureMap.AutoMocking",
                "StructureMap.AutoMocking, Version=2.6.3.0, Culture=neutral, PublicKeyToken=e60ad81abae3c223, processorArchitecture=MSIL",
                "System",
                "System.Core",
                "System.Data",
                "System.Data.DataSetExtensions",
                "System.Xml",
                "System.Xml.Linq"
            }, x => x.Include);

            theProj.RemoveDuplicateReferences();
            theProj.Write();

            theProj = null;
            theProj = new ProjFile(theFilename, null);
        }
        public void convert_to_ripple_dependencies_config()
        {
            theFilename = "TestProject.txt";
            var stream = GetType()
                         .Assembly
                         .GetManifestResourceStream(GetType(), "ProjectWithPackagesConfig.txt");

            new FileSystem().WriteStreamToFile(theFilename, stream);

            theProj = new ProjFile(theFilename, null);
            theProj.UsesPackagesConfig().ShouldBeTrue();

            theProj.ConvertToRippleDependenciesConfig();
            theProj.Write();

            theProj = null;
            theProj = new ProjFile(theFilename, null);

            theProj.UsesPackagesConfig().ShouldBeFalse();
        }
        public void convert_to_ripple_dependencies_config()
        {
            theFilename = "TestProject.txt";
            var stream = GetType()
                .Assembly
                .GetManifestResourceStream(GetType(), "ProjectWithPackagesConfig.txt");

            new FileSystem().WriteStreamToFile(theFilename, stream);

            theProj = new ProjFile(theFilename, null);
            theProj.UsesPackagesConfig().ShouldBeTrue();

            theProj.ConvertToRippleDependenciesConfig();
            theProj.Write();

            theProj = null;
            theProj = new ProjFile(theFilename, null);

            theProj.UsesPackagesConfig().ShouldBeFalse();
        }
        public void SetUp()
        {
            theFilename = "Test.txt";
            var stream = GetType()
                .Assembly
                .GetManifestResourceStream(GetType(), "ProjectWithDuplicateRefs.txt");

            new FileSystem().WriteStreamToFile(theFilename, stream);

            theProj = new ProjFile(theFilename, null);

            theProj
                .References
                .ShouldHaveTheSameElementKeysAs(new[]
				{
					"Bottles", 
					"FubuCore",
					"FubuLocalization",
					"FubuMVC.Core",
					"FubuMVC.Core.Assets",
					"FubuMVC.Core.UI",
					"FubuMVC.Core.View",
					"FubuMVC.JQueryUI",
					"FubuMVC.Media",
					"FubuMVC.StructureMap",
					"FubuTestingSupport",
					"HtmlTags",
					"Microsoft.CSharp",
					"nunit.framework",
					"nunit.framework, Version=2.5.10.11092, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL",
					"nunit.mocks",
					"nunit.mocks, Version=2.5.10.11092, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL",
					"pnunit.framework",
					"pnunit.framework, Version=1.0.4109.34242, Culture=neutral, processorArchitecture=MSIL",
					"Rhino.Mocks",
					"Rhino.Mocks, Version=3.6.0.0, Culture=neutral, PublicKeyToken=0b3305902db7183f, processorArchitecture=MSIL",
					"StructureMap",
					"StructureMap.AutoMocking",
					"StructureMap.AutoMocking, Version=2.6.3.0, Culture=neutral, PublicKeyToken=e60ad81abae3c223, processorArchitecture=MSIL",
					"System",
					"System.Core",
					"System.Data",
					"System.Data.DataSetExtensions",
					"System.Xml",
					"System.Xml.Linq"
				}, x => x.Include);

            theProj.RemoveDuplicateReferences();
            theProj.Write();

            theProj = null;
            theProj = new ProjFile(theFilename, null);
        }