示例#1
0
        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);
        }
示例#2
0
        public void RunDoesNotAcceptNull()
        {
            var pipeline = new SecurityCheckPipeline(Array.Empty <ISecurityCheck>());

            Assert.Throws <ArgumentNullException>(() => pipeline.Run(null));
        }