public void WhenInitializedWith_ErrorCodeConstructor() { var exception = new AlpacaDeviceException(_expectedErrorCode); Assert.Equal(_expectedErrorCode, exception.AlpacaErrorCode); }
public void WhenInitializedWith_MessageAndErrorCodeAndInnerExceptionConstructor() { var exception = new AlpacaDeviceException("message", _expectedErrorCode, new Exception()); Assert.Equal(_expectedErrorCode, exception.AlpacaErrorCode); }
public void WhenInitializedWith_MessageConstructor() { var exception = new AlpacaDeviceException("message"); Assert.Equal(_expectedUnspecifiedError, exception.AlpacaErrorCode); }