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

New Post: Comparing two similar objects fails

$
0
0

FieldOffset is a property of class DieCorner:

    [Serializable]
    public class DieCorner: Entity
    {
        public DieCorner()
        {
        }

        public DieCorner(ImageData imageData, WaferPosition waferPosition)
        {
            Image = imageData;
            Position = waferPosition;
        }
        
        public WaferPosition Position { get; set; }

        public FieldOffset InFieldOffset { get; set; }

        public ImageData Image { get; set; }
    }

 

The comparison is done like this:

convertedGeometry.DieCorner.ShouldHave().AllProperties().EqualTo(expectedGeometry.DieCorner);

What am I missing?

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>