コード例 #1
0
        public void convert_to_ripple_dependencies_config()
        {
            theFilename = "TestProject.txt";
            var stream = GetType()
                         .Assembly
                         .GetManifestResourceStream(GetType(), "ProjectWithPackagesConfig.txt");

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

            theCsProj = new CsProjFile(theFilename, null);
            theCsProj.UsesPackagesConfig().ShouldBeTrue();

            theCsProj.ConvertToRippleDependenciesConfig();
            theCsProj.Write();

            theCsProj = null;
            theCsProj = new CsProjFile(theFilename, null);

            theCsProj.UsesPackagesConfig().ShouldBeFalse();
        }