我想(在c#中)编写MVC控制器操作的单元测试,该操作可能返回一个视图或另一个视图,具体取决于请求是否经过身份验证.如何才能做到这一点?
c# authentication asp.net-mvc unit-testing
asp.net-mvc ×1
authentication ×1
c# ×1
unit-testing ×1