Assert.AreEqual failing in unit test

后端 未结 10 1361
挽巷
挽巷 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:31

    The Assert fails because it verifies whether the two lists are in fact the same instance. They are not; it's two different list instances. You will need to write code to verify that the two lists contains the same set of items.

提交回复
热议问题