public void Sets_Exception() { var exception = new Exception("Test"); var result = new MoveResult("sourceKey", "destKey", exception); Assert.False(result.Success); Assert.Equal(exception, result.Exception); }
public void Get_Exception_Message(Exception e, string msg) { var result = new MoveResult("sourceKey", "destKey", e); Assert.Equal(msg, result.GetErrorMessage()); }
public void Sets_ErrorMsg(string msg) { var exception = new Exception("Test"); var result = new MoveResult("sourceKey", "destKey", exception, errorMsg: msg); Assert.Equal(msg, result.GetErrorMessage()); }
public void Sets_Success(string sourceKey, string destKey, bool success) { var result = new MoveResult(sourceKey, destKey, success); Assert.Equal(success, result.Success); }