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