Moq Mocking and tracking Session values

后端 未结 4 1060
日久生厌
日久生厌 2021-01-13 05:18

I\'m having problems returning a Session value set from mocking using Moq. Using the following

public class TestHelpers
{
 public long sessionValue = -1;
 pu         


        
4条回答
  •  天命终不由人
    2021-01-13 06:18

    Moq's Setup methods do not work with indexed properties that have string indexes. See here: How to MOQ an Indexed property

提交回复
热议问题