1
- using System ;
2
- using FluentAssertions ;
1
+ using FluentAssertions ;
3
2
using Microsoft . VisualStudio . TestTools . UnitTesting ;
4
3
using Moq ;
5
4
using SSLLWrapper ;
@@ -20,7 +19,7 @@ public static void Setup(TestContext testContext)
20
19
TestHost = "https://www.ashleypoole.co.uk" ;
21
20
var webResponseModel = new WebResponseModel ( )
22
21
{
23
- Payloay = "{\" host\" :\" https://www.ashleypoole.co.uk\" ,\" port\" :443,\" protocol\" :\" HTTPS\" ,\" isPublic\" :true ,\" status\" :\" READY\" ,\" " +
22
+ Payloay = "{\" host\" :\" https://www.ashleypoole.co.uk\" ,\" port\" :443,\" protocol\" :\" HTTPS\" ,\" isPublic\" :false ,\" status\" :\" READY\" ,\" " +
24
23
"startTime\" :1422115006431,\" testTime\" :1422115131804,\" engineVersion\" :\" 1.12.8\" ,\" criteriaVersion\" :\" 2009i\" ,\" " +
25
24
"endpoints\" :[{\" ipAddress\" :\" 104.28.6.2\" ,\" statusMessage\" :\" Ready\" ,\" grade\" :\" A\" ,\" hasWarnings\" :false,\" " +
26
25
"isExceptional\" :false,\" progress\" :100,\" duration\" :64286,\" eta\" :2393,\" delegation\" :3},{\" ipAddress\" :\" 104.28.7.2\" " +
@@ -133,6 +132,12 @@ public static void Setup(TestContext testContext)
133
132
Response = ssllService . Analyze ( TestHost , SSLLService . Publish . On , SSLLService . ClearCache . On ,
134
133
SSLLService . FromCache . Ignore , SSLLService . All . Done ) ;
135
134
}
135
+
136
+ [ TestMethod ]
137
+ public void then_the_status_code_should_be_valid_for_response ( )
138
+ {
139
+ Response . Header . statusCode . Should ( ) . Be ( 200 ) ;
140
+ }
136
141
}
137
142
138
143
[ TestClass ]
@@ -193,7 +198,7 @@ public void then_an_error_occurred_should_be_marked()
193
198
}
194
199
195
200
[ TestMethod ]
196
- public void then_a_error_message_should_be_returned ( )
201
+ public void then_at__least_one_error_should_be_thrown ( )
197
202
{
198
203
Response . Errors . Count . Should ( ) . BeGreaterOrEqualTo ( 1 ) ;
199
204
}
0 commit comments