Explorar el Código

* Changed AssertException so "no exception" is displayed if there was no exception

git-svn-id: trunk@11567 -
michael hace 17 años
padre
commit
71f89ce8cd
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      packages/fcl-fpcunit/src/fpcunit.pp

+ 2 - 1
packages/fcl-fpcunit/src/fpcunit.pp

@@ -302,7 +302,7 @@ Resourcestring
   SMethodNotFound = 'Method <%s> not found';
   SNoValidInheritance = ' does not inherit from TTestCase';
   SNoValidTests = 'No valid tests found in ';
-
+  SNoException = 'no exception';
 
 implementation
 
@@ -712,6 +712,7 @@ begin
   Passed := False;
   try
     AMethod;
+    ExceptionName:=SNoException;
   except
     on E: Exception do
     begin