Files
keystone-engine-keystone/bindings/csharp/KeystoneNET/KeystoneNET.Tests/Compilation.feature
T
Marco 1149b6b086 Added support for CSharp (#287)
* Added support for CSharp

* Minor changes to const_generator.py; Moved files according to the output of const_generator.py; Removed non-english comments;

* Released keystone after tests
2017-03-20 18:12:51 +08:00

21 lines
701 B
Gherkin

Feature: Compilation
Scenario: Compile the nop instruction
Given An instance of Keystone built for X86 in mode 32
And The statement(s) "nop"
When I compile the statement(s) with Keystone
Then the result is 90
Scenario: Compile an invalid instruction
Given An instance of Keystone built for X86 in mode 32
And The statement(s) "invalid instruction"
When I compile the statement(s) with Keystone
Then The last error is ASM_MNEMONICFAIL
Scenario: Compile a jump to label
Given An instance of Keystone built for X86 in mode 32
And A dummy symbols resolver
And The statement(s) "jmp _unknownSymbol;nop;"
When I compile the statement(s) with Keystone
Then the result is e9,aa,ab,ab,00,90