Esempio n. 1
0
        static void Test()
        {
            var ram       = new Ram();
            var corrupter = new RamCorrupter();

            corrupter.Corrupt(ram);
            Console.WriteLine("total faults count: {0}", ram.AllFaultsCount);
            Console.WriteLine(ram);
            Console.WriteLine();

            var tester = new RamTester(ram);

            Console.WriteLine("testing march");
            //tester.TestMarchCMinus();
            tester.TestMarchC();
            //tester.TestMarchPS();
            Console.WriteLine();

            Console.WriteLine("testing walking 0");
            tester.TestWalking(0);
            Console.WriteLine("testing walking 1");
            tester.TestWalking(1);
            Console.WriteLine();
        }
Esempio n. 2
0
 public RamTester(Ram ram)
 {
     this.ram = ram;
 }
Esempio n. 3
0
 public void Corrupt(Ram ram)
 {
     AddConstantFaultsTo(ram);
     AddOtherFaultsTo(ram);
 }