Exemple #1
0
        public void TracerVerifyPrimitivesCompleteness()
        {
            QCTraceSimulator tracerCore = new QCTraceSimulator();

            var ops =
                from op in typeof(Intrinsic.X).Assembly.GetExportedTypes()
                where op.IsSubclassOf(typeof(AbstractCallable))
                where !op.IsNested
                select op;

            var missing = new List <Type>();

            foreach (var op in ops)
            {
                try
                {
                    var i = tracerCore.GetInstance(op);
                    Assert.NotNull(i);
                }
                catch (Exception)
                {
                    missing.Add(op);
                }
            }

            Assert.Empty(missing);
        }