Assert.AreEqual failing in unit test

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

    References to lists are different, try instead

    Assert.AreEqual(EdgeCaseSymbolCodesExpected[0], target.HazardSymbols[0]);
    Assert.AreEqual(EdgeCaseSymbolCodesExpected[1], target.HazardSymbols[1]);
    Assert.AreEqual(EdgeCaseSymbolCodesExpected[2], target.HazardSymbols[2]);
    

提交回复
热议问题