private void AssertCpuMessage <TCpu>(int value, string expectedMessage, Func <byte, TCpu> cpuConstructor) where TCpu : Cpu
        {
            var result = string.Empty;

            this.cpu             = cpuConstructor(2);
            this.cpu.Motherboard = MotherboardMock.GetDrawable(value, sqNumberMessage => result = sqNumberMessage);
            this.cpu.SquareNumber();

            Assert.AreEqual(expectedMessage, result);
        }
Exemple #2
0
 public void CpuInitialize()
 {
     this.cpu             = new Cpu32Bit(2);
     this.cpu.Motherboard = MotherboardMock.GetSaveableInRam(s => this.random = s);
 }