public void TestCertificateCollectorWindows()
        {
            var fsc = new CertificateCollector();

            fsc.Execute();

            Assert.IsTrue(fsc.Results.Where(x => x.ResultType == RESULT_TYPE.CERTIFICATE).Count() > 0);
        }
        public void TestCertificateCollectorWindows()
        {
            var FirstRunId = "TestCertificateCollector-1";

            var fsc = new CertificateCollector(FirstRunId);

            fsc.Execute();

            var results = DatabaseManager.GetResultsByRunid(FirstRunId);

            Assert.IsTrue(results.Where(x => x.ColObj.ResultType == RESULT_TYPE.CERTIFICATE).Count() > 0);
        }
Пример #3
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);
        }