运行单元测试确保测试用例能继续找到并返回正确的对象。
Running unit tests assures that test case code will continue to find and return the correct objects.
补救方法是更改代码,以强制转换为正确的对象。
The remedy is to change the code to cast correctly to the right object.
简单地说,转换是确保数据拥有正确的对象或者类型的过程。
Simply put, it's the process of ensuring data is of the right object or type. Here are two typical conversions.
应用推荐