Esempio n. 1
0
        public void TestCertificateCollectorWindows()
        {
            var fsc = new CertificateCollector();

            fsc.TryExecute();

            Assert.IsTrue(fsc.Results.Where(x => x.ResultType == RESULT_TYPE.CERTIFICATE).Count() > 0);
        }
Esempio n. 2
0
        public void TestCertificateCollectorWindows()
        {
            var cc = new CertificateCollector();

            cc.TryExecute();

            Assert.IsTrue(cc.Results.Where(x => x.ResultType == RESULT_TYPE.CERTIFICATE).Count() > 0);

            ConcurrentStack <CollectObject> results = new ConcurrentStack <CollectObject>();

            cc = new CertificateCollector(changeHandler: x => results.Push(x));
            cc.TryExecute();

            Assert.IsTrue(results.Where(x => x.ResultType == RESULT_TYPE.CERTIFICATE).Count() > 0);
        }