示例#1
0
        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);
        }
示例#2
0
 public void Get_Exception_Message(Exception e, string msg) {
     var result = new MoveResult("sourceKey", "destKey", e);
     Assert.Equal(msg, result.GetErrorMessage());
 }
示例#3
0
        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());
        }
示例#4
0
 public void Sets_Success(string sourceKey, string destKey, bool success) {
     var result = new MoveResult(sourceKey, destKey, success);
     Assert.Equal(success, result.Success);
 }