Discussions

Ask a Question
Back to All

ShouldLookLike for a List

How can I assert a list, something like below:
myResult.ShouldLookLike(() =>
new List(){
new MyObject(){
//resultId is Guid, so this should be ignore
ObjectName = "result name 1",
ObjectValue = "object value 1"
},
new MyObject(){
//resultId is Guid, so this should be ignore
ObjectName = "result name 2",
ObjectValue = "object value 2"
}
}