Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public static void NewExternalExceptionForLastHRESULTStringTest( [Values(null, "", "methodName")] string methodName ) { var hresult = Marshal.GetHRForLastWin32Error(); Assert.That(ExceptionUtilities.NewExternalExceptionForLastHRESULT(methodName), Is.InstanceOf <ExternalException>() .With.Property("ErrorCode").EqualTo(hresult) ); }