Executes a verification asset. Throws a VerificationFailedException if the verification does not pass. Throws an ObjectNotFoundException if the UI object to verify cannot be found.
result = VerifyAsset(verificationAsset)
result = VerifyAsset(verificationAsset)
Variable | Description |
---|---|
result | Whether the verification was successful. BOOLEAN. |
verificationAsset | The name of the .verification file. The file extension can be omitted. String. |
To execute a verification of the image asset myImageAsset, type the following code:
Silk4NET.VerifyAsset("myImageAsset");
Silk4NET.VerifyAsset("myImageAsset")