C# Class TestLibrary.TestUtils.IDocumentAssertUtils

ファイルを表示 Open project: OpenDataSpace/CmisSync

Public Methods

Method Description
AssertThatIfContentHashExistsItIsEqualTo ( this doc, byte content, string msg = null ) : void
AssertThatIfContentHashExistsItIsEqualTo ( this doc, string content, string msg = null ) : void
AssertThatIfContentHashExistsItIsEqualToHash ( this doc, byte expectedHash, string type = "SHA-1", string msg = null ) : void
ComputeSha1Hash ( byte content ) : byte[]
ComputeSha1Hash ( string content ) : byte[]
VerifyThatIfTimeoutIsExceededContentHashIsEqualTo ( this doc, string content, int timeoutInSeconds = 3600 ) : bool

Method Details

AssertThatIfContentHashExistsItIsEqualTo() public static method

public static AssertThatIfContentHashExistsItIsEqualTo ( this doc, byte content, string msg = null ) : void
doc this
content byte
msg string
return void

AssertThatIfContentHashExistsItIsEqualTo() public static method

public static AssertThatIfContentHashExistsItIsEqualTo ( this doc, string content, string msg = null ) : void
doc this
content string
msg string
return void

AssertThatIfContentHashExistsItIsEqualToHash() public static method

public static AssertThatIfContentHashExistsItIsEqualToHash ( this doc, byte expectedHash, string type = "SHA-1", string msg = null ) : void
doc this
expectedHash byte
type string
msg string
return void

ComputeSha1Hash() public static method

public static ComputeSha1Hash ( byte content ) : byte[]
content byte
return byte[]

ComputeSha1Hash() public static method

public static ComputeSha1Hash ( string content ) : byte[]
content string
return byte[]

VerifyThatIfTimeoutIsExceededContentHashIsEqualTo() public static method

public static VerifyThatIfTimeoutIsExceededContentHashIsEqualTo ( this doc, string content, int timeoutInSeconds = 3600 ) : bool
doc this
content string
timeoutInSeconds int
return bool