public void ExceptionWithInternalException_AsFailedOpResultOfRefType_MatchingFailedOperationResult() { //Arrange const string errorMessage = "Some error message"; var exception = new Exception(errorMessage); //Act var opRes = exception.AsFailedOpResOf <string>(); //Assert Assert.IsFalse(opRes.Success); Assert.AreEqual(errorMessage, opRes.ErrorMessage); Assert.AreEqual(default(string), opRes.Value); }