RenameFileTo() публичный Метод

public RenameFileTo ( string oldFilePath, string newFilePath ) : void
oldFilePath string
newFilePath string
Результат void
        private void TweakJsonFile()
        {
            var jsonBuilder  = new JsonDocumentationBuilder(this.configuration, this.testResults, this.fileSystem, this.languageServicesRegistry);
            var jsonFilePath = jsonBuilder.OutputFilePath;

            var tweaker = new JsonTweaker(this.fileSystem);

            tweaker.AddJsonPWrapperTo(jsonFilePath);
            tweaker.RenameFileTo(jsonFilePath, jsonFilePath.Replace(".json", ".js"));
        }
        private void TweakJsonFile()
        {
            var jsonBuilder = new JsonDocumentationBuilder(this.configuration, this.testResults, this.fileSystem);
            var jsonFilePath = jsonBuilder.OutputFilePath;

            var tweaker = new JsonTweaker(this.fileSystem);
            tweaker.AddJsonPWrapperTo(jsonFilePath);
            tweaker.RenameFileTo(jsonFilePath, jsonFilePath.Replace(".json", ".js"));
        }