Beispiel #1
0
        public void TestAnalyzeProcNotFull()
        {
            AnalysisThread target     = CreateAnalysisThread(false);
            bool           eventFired = false;

            target.Complete += ((sender, args) => { eventFired = true; });
            target.AnalyzeProc();
            Assert.IsTrue(eventFired, "Analysation didnt fire the Complete event");
        }
        public void TestAnalyzeProcNotFull()
        {
            try
            {
                AnalysisThread target     = CreateAnalysisThread(false);
                bool           eventFired = false;

                target.Complete += ((sender, args) => { eventFired = true; });
                target.AnalyzeProc();
                Assert.IsTrue(eventFired, "Analysation didnt fire the Complete event");
            }
            catch (Exception ex)
            {
                // Use try catch to test a workaround on CI build (AppVeyor)
                Console.WriteLine(ex.Message);
            }
        }