예제 #1
0
        public void Sets_Exception() {
            var exception = new Exception("Test");
            var result = new DeleteResult(exception);

            Assert.False(result.Success);
            Assert.Equal(exception, result.Exception);
        }
예제 #2
0
 public void Get_Exception_Message(Exception e, string msg) {
     var result = new DeleteResult(e);
     Assert.Equal(msg, result.GetErrorMessage());
 }
예제 #3
0
 public void Sets_Success(bool success) {
     var result = new DeleteResult(success);
     Assert.Equal(success, result.Success);
 }