@@ -87,15 +87,15 @@ public static TopicController GetTopicController(Topic topic) =>
87
87
} ;
88
88
89
89
/*==========================================================================================================================
90
- | TEST: INVALID CONTROLLER THROWS EXCEPTION
90
+ | TEST: INVALID CONTROLLER TYPE THROWS EXCEPTION
91
91
\-------------------------------------------------------------------------------------------------------------------------*/
92
92
/// <summary>
93
93
/// Ensures that a controller that doesn't derive from <see cref="TopicController"/> throws a <see
94
94
/// cref="InvalidOperationException"/>.
95
95
/// </summary>
96
96
[ TestMethod ]
97
97
[ ExpectedException ( typeof ( InvalidOperationException ) ) ]
98
- public void InvalidController_Throws_Exception ( ) {
98
+ public void InvalidControllerType_ThrowsException ( ) {
99
99
100
100
var validateFilter = new ValidateTopicAttribute ( ) ;
101
101
var controller = new DummyController ( ) {
@@ -112,13 +112,13 @@ public void InvalidController_Throws_Exception() {
112
112
113
113
}
114
114
/*==========================================================================================================================
115
- | TEST: NULL TOPIC RETURNS NOT FOUND
115
+ | TEST: NULL TOPIC: RETURNS NOT FOUND
116
116
\-------------------------------------------------------------------------------------------------------------------------*/
117
117
/// <summary>
118
118
/// Ensures that a <see cref="NotFoundObjectResult"/> is thrown if the <see cref="TopicController.CurrentTopic"/> is null.
119
119
/// </summary>
120
120
[ TestMethod ]
121
- public void NullTopic_Returns_NotFound ( ) {
121
+ public void NullTopic_ReturnsNotFound ( ) {
122
122
123
123
var validateFilter = new ValidateTopicAttribute ( ) ;
124
124
var controller = GetTopicController ( null ) ;
@@ -133,13 +133,13 @@ public void NullTopic_Returns_NotFound() {
133
133
}
134
134
135
135
/*==========================================================================================================================
136
- | TEST: DISABLED TOPIC RETURNS NOT AUTHORIZED
136
+ | TEST: DISABLED TOPIC: RETURNS NOT AUTHORIZED
137
137
\-------------------------------------------------------------------------------------------------------------------------*/
138
138
/// <summary>
139
139
/// Ensures that a <see cref="NotFoundObjectResult"/> is thrown if the <see cref="TopicController.CurrentTopic"/> is null.
140
140
/// </summary>
141
141
[ TestMethod ]
142
- public void DisabledTopic_Returns_NotFound ( ) {
142
+ public void DisabledTopic_ReturnsNotFound ( ) {
143
143
144
144
var validateFilter = new ValidateTopicAttribute ( ) ;
145
145
var topic = TopicFactory . Create ( "Key" , "Page" ) ;
@@ -157,14 +157,14 @@ public void DisabledTopic_Returns_NotFound() {
157
157
}
158
158
159
159
/*==========================================================================================================================
160
- | TEST: TOPIC WITH URL RETURNS REDIRECT
160
+ | TEST: TOPIC WITH URL: RETURNS REDIRECT
161
161
\-------------------------------------------------------------------------------------------------------------------------*/
162
162
/// <summary>
163
163
/// Ensures that a <see cref="RedirectResult"/> is thrown if the <see cref="TopicController.CurrentTopic"/> contains
164
164
/// a <c>Url</c> attribute.
165
165
/// </summary>
166
166
[ TestMethod ]
167
- public void TopicWithUrl_Returns_Redirect ( ) {
167
+ public void TopicWithUrl_ReturnsRedirect ( ) {
168
168
169
169
var validateFilter = new ValidateTopicAttribute ( ) ;
170
170
var topic = TopicFactory . Create ( "Key" , "Page" ) ;
@@ -182,14 +182,14 @@ public void TopicWithUrl_Returns_Redirect() {
182
182
}
183
183
184
184
/*==========================================================================================================================
185
- | TEST: NESTED TOPIC RETURNS 403
185
+ | TEST: NESTED TOPIC: RETURNS 403
186
186
\-------------------------------------------------------------------------------------------------------------------------*/
187
187
/// <summary>
188
188
/// Ensures that a <see cref="StatusCodeResult"/> is thrown if the <see cref="TopicController.CurrentTopic"/> has a
189
189
/// <see cref="ContentTypeDescriptor"/> of <c>List</c>.
190
190
/// </summary>
191
191
[ TestMethod ]
192
- public void NestedTopic_Returns_403 ( ) {
192
+ public void NestedTopic_Returns403 ( ) {
193
193
194
194
var validateFilter = new ValidateTopicAttribute ( ) ;
195
195
var topic = TopicFactory . Create ( "Key" , "List" ) ;
@@ -208,14 +208,14 @@ public void NestedTopic_Returns_403() {
208
208
}
209
209
210
210
/*==========================================================================================================================
211
- | TEST: PAGE GROUP TOPIC RETURNS REDIRECT
211
+ | TEST: PAGE GROUP TOPIC: RETURNS REDIRECT
212
212
\-------------------------------------------------------------------------------------------------------------------------*/
213
213
/// <summary>
214
214
/// Ensures that a <see cref="RedirectResult"/> is thrown if the <see cref="TopicController.CurrentTopic"/> has a
215
215
/// <see cref="ContentTypeDescriptor"/> of <c>PageGroup</c>.
216
216
/// </summary>
217
217
[ TestMethod ]
218
- public void PageGroupTopic_Returns_Redirect ( ) {
218
+ public void PageGroupTopic_ReturnsRedirect ( ) {
219
219
220
220
var validateFilter = new ValidateTopicAttribute ( ) ;
221
221
var topic = TopicFactory . Create ( "Key" , "PageGroup" ) ;
0 commit comments