C# Class ApprovalTests.Approvers.FileApprover

Inheritance: IApprovalApprover
ファイルを表示 Open project: approvals/ApprovalTests.Net Class Usage Examples

Public Properties

Property Type Description
approved string
failure ApprovalTests.Core.Exceptions.ApprovalException
namer IApprovalNamer
normalizeLineEndingsForTextFiles bool
received string
writer IApprovalWriter

Public Methods

Method Description
Approve ( string approvedPath, string receivedPath ) : ApprovalTests.Core.Exceptions.ApprovalException
Approve ( ) : bool
CleanUpAfterSuccess ( IApprovalFailureReporter reporter ) : void
Fail ( ) : void
FileApprover ( IApprovalWriter writer, IApprovalNamer namer ) : System.Collections.Generic
FileApprover ( IApprovalWriter writer, IApprovalNamer namer, bool normalizeLineEndingsForTextFiles ) : System.Collections.Generic
ReportFailure ( IApprovalFailureReporter reporter ) : void

Private Methods

Method Description
Compare ( ICollection bytes1, ICollection bytes2 ) : bool
Compare ( ICollection chars1, ICollection chars2 ) : bool

Method Details

Approve() public method

public Approve ( string approvedPath, string receivedPath ) : ApprovalTests.Core.Exceptions.ApprovalException
approvedPath string
receivedPath string
return ApprovalTests.Core.Exceptions.ApprovalException

Approve() public method

public Approve ( ) : bool
return bool

CleanUpAfterSuccess() public method

public CleanUpAfterSuccess ( IApprovalFailureReporter reporter ) : void
reporter IApprovalFailureReporter
return void

Fail() public method

public Fail ( ) : void
return void

FileApprover() public method

public FileApprover ( IApprovalWriter writer, IApprovalNamer namer ) : System.Collections.Generic
writer IApprovalWriter
namer IApprovalNamer
return System.Collections.Generic

FileApprover() public method

public FileApprover ( IApprovalWriter writer, IApprovalNamer namer, bool normalizeLineEndingsForTextFiles ) : System.Collections.Generic
writer IApprovalWriter
namer IApprovalNamer
normalizeLineEndingsForTextFiles bool
return System.Collections.Generic

ReportFailure() public method

public ReportFailure ( IApprovalFailureReporter reporter ) : void
reporter IApprovalFailureReporter
return void

Property Details

approved public_oe property

public string approved
return string

failure public_oe property

public ApprovalException,ApprovalTests.Core.Exceptions failure
return ApprovalTests.Core.Exceptions.ApprovalException

namer public_oe property

public IApprovalNamer namer
return IApprovalNamer

normalizeLineEndingsForTextFiles public_oe property

public bool normalizeLineEndingsForTextFiles
return bool

received public_oe property

public string received
return string

writer public_oe property

public IApprovalWriter writer
return IApprovalWriter