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:
@ -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)!
|
||||
|
Reference in New Issue
Block a user