public void FormatsTheDefaultRegisters() { var model = new ProgrammingModel(); var expected = string.Join("\n", "A:0x00 - X:0x00 - Y:0x00 - S:00100000", "SP:0xFF - PC:0x0000 NV-BDIZC"); Assert.That(RegisterFormatter.Display(model), Is.EqualTo(expected)); }
// Update is called once per frame private void Update() { GetComponent <Text>().text = RegisterFormatter.Display(model); }