Using Ranorex with FluentAssertions

Ask general questions here.
puntapret
Posts: 34
Joined: Fri Sep 14, 2012 11:05 am

Using Ranorex with FluentAssertions

Post by puntapret » Wed Jan 15, 2014 11:02 am

Hi,

I liked the way FluentAssertions doing an assertion, and i know that Ranorex provide the Validate.

Is there a way to use FluentAssertions with Ranorex without using try catch like this :

Code: Select all

try { 
myList.Should().BeEmpty(); }
catch ( Exception ex )
{
 // Report error 
}
Thanks

krstcs
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Using Ranorex with FluentAssertions

Post by krstcs » Wed Jan 15, 2014 3:11 pm

You could write your own library that emulates FluentAssertions and use that in your tests.

Ranorex is just .NET, so anything you can do in .NET you can do in Ranorex.
Shortcuts usually aren't...