C# Class openHistorian.HelperFunctions

Contains some random and useful functions.
Mostrar archivo Open project: GridProtectionAlliance/openHistorian

Public Methods

Method Description
ExpectError ( System.Action errorFunction ) : void

Performs the given action action and throws an exception if the action does not error. This is useful for debugging code and testing for exceptions.

Method Details

ExpectError() public static method

Performs the given action action and throws an exception if the action does not error. This is useful for debugging code and testing for exceptions.
public static ExpectError ( System.Action errorFunction ) : void
errorFunction System.Action the action to perform
return void