C# Класс Xunit.Reporting.Internal.Generator.FileWriter

A simple file writer.
Наследование: IFileWriter
Показать файл Открыть проект

Открытые методы

Метод Описание
FileWriter ( IArguments arguments, IFileSystemHelper fileSystemHelper ) : System

Creates a new instance of the FileWriter class.

Write ( string fileName, Action contentWriter ) : void

Writes the content supplied via contentWriter to the file specified via fileName.

Приватные методы

Метод Описание
GetDefaultPath ( ) : string
GetTargetFileName ( string fileName ) : string
GetTargetPath ( ) : string

Описание методов

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

Creates a new instance of the FileWriter class.
public FileWriter ( IArguments arguments, IFileSystemHelper fileSystemHelper ) : System
arguments IArguments /// Specifies the arguments for this writer. ///
fileSystemHelper IFileSystemHelper /// Specifies the helper for ///
Результат System

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

Writes the content supplied via contentWriter to the file specified via fileName.
public Write ( string fileName, Action contentWriter ) : void
fileName string Specifies the filename to write to.
contentWriter Action Specifies the writer handler which is called /// to fill the file with content.
Результат void