类型为DateTimeOffset的模拟属性导致Windows Store测试库中的InvalidProgramException - Mocking property of type DateTimeOffset results in InvalidProgramException in a Windows Store Test library
我刚开始使用Windows Store应用程序,并决定在我的项目中使用测试驱动的开发。 由于我之前曾对NUnit有所了解,因此我选择了它作为库,然后我开始使用MoqRT,这是网站推荐的模拟库,用作Windows Store应用程序的模拟库。 我面临的问题是当我模拟具有DateTimeOf ...