C# 클래스 Xunit.Reporting.Internal.Generator.FileWriter

A simple file writer.
상속: IFileWriter
파일 보기 프로젝트 열기: BjRo/xunitbddextensions

공개 메소드들

메소드 설명
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