Assert.AreEqual failing in unit test

后端 未结 10 1352
挽巷
挽巷 2021-01-18 14:54

I have the following unit test:

string MtrlCode = \"0\";
Assessment target = new Assessment(MtrlCode);

List EdgeCaseSymbolCodes = new List<         


        
10条回答
  •  野的像风
    2021-01-18 15:16

    I don't think Assert.AreEqual supports collections.

    You will have to write your own method that checks the number of elements in the collections and compares them individually.

    You will have to supply your own logic for how you define the equality of collections, ie. if both collections contain the same elements but in different order, are they still equal?

提交回复
热议问题