Ejemplo n.º 1
0
        static string GetTestName(ConnectionTestCategory category, RenegotiationTestType type, params object[] args)
        {
            var sb = new StringBuilder();

            sb.Append(type);
            foreach (var arg in args)
            {
                sb.AppendFormat(":{0}", arg);
            }
            return(sb.ToString());
        }
Ejemplo n.º 2
0
        static InstrumentationFlags GetFlags(RenegotiationTestType type)
        {
            switch (type)
            {
            case RenegotiationTestType.MartinTest:
                return(InstrumentationFlags.ExpectClientException | InstrumentationFlags.ExpectServerException |
                       InstrumentationFlags.SkipMainLoop);

            default:
                throw new InternalErrorException();
            }
        }
Ejemplo n.º 3
0
        public static RenegotiationTestParameters GetParameters(TestContext ctx, ConnectionTestCategory category,
                                                                RenegotiationTestType type)
        {
            var certificateProvider = DependencyInjector.Get <ICertificateProvider> ();
            var acceptAll           = certificateProvider.AcceptAll();

            var name = GetTestName(category, type);

            return(new RenegotiationTestParameters(category, type, name, ResourceManager.SelfSignedServerCertificate)
            {
                ClientCertificateValidator = acceptAll
            });
        }
 protected RenegotiationTestParameters(RenegotiationTestParameters other)
     : base(other)
 {
     Type = other.Type;
 }
 public RenegotiationTestParameters(ConnectionTestCategory category, RenegotiationTestType type,
                                    string identifier, X509Certificate certificate)
     : base(category, identifier, certificate)
 {
     Type = type;
 }
 public RenegotiationTestParametersAttribute(RenegotiationTestType type)
     : base(null, TestFlags.Browsable | TestFlags.ContinueOnError)
 {
     Type = type;
 }