Quantcast
Channel: Fluent Assertions
Viewing all articles
Browse latest Browse all 1402

New Post: Comparing two similar objects fails

$
0
0

Hi,

when i'm comparing two matching objects, the assertion fails.

any idea why?

Expected property InFieldOffset to be 
Data.Recipe.FieldOffset   {      Column = 1      Row = 1   },

but found 
Data.Recipe.FieldOffset   {      Column = 1      Row = 1   }.

I'm using version 1.7.1.

class is defined as follows:

    [Serializable]   

public class FieldOffset   

{       

public FieldOffset(int row, int column)       

{            Row = row;            Column = column;        }

        public int Row { get; set; }
        public int Column { get; set; }   

}

Thanks!


Viewing all articles
Browse latest Browse all 1402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>