0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-07-02 04:50:27 +03:00

add misc handlers, cleanup and fixes

This commit is contained in:
bird_egop
2025-04-17 20:47:51 +03:00
parent 124493cd94
commit a9d4c39717
22 changed files with 1086 additions and 63 deletions

View File

@ -10,7 +10,7 @@ public class InstructionHandlerFactoryTests
public void Factory_ShouldNotContainDuplicates()
{
byte[] code = new byte[] {0xCC, 0xCC, 0xCC};
var sut = new InstructionHandlerFactory(code, new InstructionDecoder(code, code.Length), code.Length);
var sut = new InstructionHandlerFactory(new InstructionDecoder(code, code.Length));
var handlers = (List<IInstructionHandler>) sut.GetType()
.GetField("_handlers", BindingFlags.Instance | BindingFlags.NonPublic)!
@ -26,7 +26,7 @@ public class InstructionHandlerFactoryTests
public void Factory_ShouldContainAllKnownHandlers()
{
byte[] code = new byte[] {0xCC, 0xCC, 0xCC};
var sut = new InstructionHandlerFactory(code, new InstructionDecoder(code, code.Length), code.Length);
var sut = new InstructionHandlerFactory(new InstructionDecoder(code, code.Length));
var handlers = (List<IInstructionHandler>) sut.GetType()
.GetField("_handlers", BindingFlags.Instance | BindingFlags.NonPublic)!