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