C# Class Scriban.Tests.TextAssert

Pretty text assert from https://gist.github.com/Haacked/1610603 Modified version to only print +-10 characters around the first diff
ファイルを表示 Open project: lunet-io/scriban Class Usage Examples

Public Methods

Method Description
AreEqual ( string expectedValue, string actualValue ) : void
AreEqual ( string expectedValue, string actualValue, DiffStyle diffStyle ) : void
AreEqual ( string expectedValue, string actualValue, DiffStyle diffStyle, TextWriter output ) : void

Private Methods

Method Description
ToSafeString ( this c ) : string

Method Details

AreEqual() public static method

public static AreEqual ( string expectedValue, string actualValue ) : void
expectedValue string
actualValue string
return void

AreEqual() public static method

public static AreEqual ( string expectedValue, string actualValue, DiffStyle diffStyle ) : void
expectedValue string
actualValue string
diffStyle DiffStyle
return void

AreEqual() public static method

public static AreEqual ( string expectedValue, string actualValue, DiffStyle diffStyle, TextWriter output ) : void
expectedValue string
actualValue string
diffStyle DiffStyle
output System.IO.TextWriter
return void