这样能够更容易找到您需要测试的所有公有方法。
This makes it easier to find all the public methods you need to test. Each test starts life looking like this.
特别是将一些私有方法变成公有方法能够使这个代码编写起来更容易。
In particular, being able to change a few private methods to public would have made this code a lot easier to write.
示例的服务位于一个名为GetUserInfo的类,它包括以下公有方法。
The sample service resides in a class named GetUserInfo that includes the following public methods.
应用推荐