public void BadSSLTests(string uri, SecurityCheckState expected) { var pipeline = new SecurityCheckPipeline(new[] { CreateSecurityCheck() }); var result = pipeline.Run(new System.Uri(uri)); Assert.Equal(expected, result.First().SecurityCheckResult.State); }
public void RunDoesNotAcceptNull() { var pipeline = new SecurityCheckPipeline(Array.Empty <ISecurityCheck>()); Assert.Throws <ArgumentNullException>(() => pipeline.Run(null)); }