Page 1 of 1

Using Ranorex with FluentAssertions

Posted: Wed Jan 15, 2014 11:02 am
by puntapret
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

Re: Using Ranorex with FluentAssertions

Posted: Wed Jan 15, 2014 3:11 pm
by krstcs
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.