Browse Source

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

git-svn-id: trunk@11567 -
michael 17 years ago
parent
commit
71f89ce8cd
1 changed files with 2 additions and 1 deletions
  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