Esempio n. 1
0
        public void Test_Recursive_Enabled()
        {
            var algo = new TestAlgo();

            algo.Recursive(10);

            var context = Log.DumpInMemory();

            var output = LogPrinter.Print(context);

            Console.WriteLine(output);
        }
Esempio n. 2
0
        public void Test_Recursive_Enabled()
        {
            var algo = new TestAlgo();
            algo.Recursive(10);
            var output = GetOutput();

            var ilalgo = WeaverHelper.CreateInstance<Yalf.TestAssembly.TestAlgo>(assembly);
            ilalgo.Recursive(10);
            var iloutput = GetOutput();

            var equal = String.Compare(output, iloutput, StringComparison.OrdinalIgnoreCase) == 0;
            Assert.That(equal, Is.True);
        }