Jump to content
Sign in to follow this  
fisipjm

DUnitX - Assert.AreNotEqual - Compiler error E2532 - Couldn't infer generic type argument from different argument types for method

Recommended Posts

Hi,

 

after upgrading my Project to D13 many of my tests Fail here is one example for one test case:

 

procedure CheckListState;
var
	ResultArray: Tarray<String>;
begin
   ResultArray:= GetResults;
   Assert.AreNotEqual(0, length(ResultArray), 'List is Active but has no Values'); //  <--- Error here
   //If I write like this it works. But the response of length should be integer anyway????
   //Assert.AreNotEqual(0, Integer(length(ResultArray)), 'List is Active but has no Values'); 
   
end;

Any suggestions on that? Is DunityX / Testinsight released for D13?

Edited by fisipjm

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×