Exemple #1
0
		public void Ram_Loads_Program_Correctly()
		{
			var ram = new Ram(0x05);
			ram.LoadProgram(0x04,new byte[] { 0xab } );

			Assert.That(ram.ReadValue(0x04), Is.EqualTo(0xab));
		}
Exemple #2
0
		public void Ram_Throws_Exception_If_Offset_Is_Too_Large()
		{
			var ram = new Ram(0x01);
			ram.LoadProgram(0x2, new byte[0x01]);
		}