This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
ale/test/command_callback/test_cs_mcsc_command_callbacks.vader

48 lines
1.7 KiB
Text
Raw Normal View History

Before:
call ale#assert#SetUpLinterTest('cs', 'mcsc')
After:
call ale#assert#TearDownLinterTest()
Execute(The mcsc linter should return the correct default command):
2018-10-23 14:20:27 +00:00
AssertLinter 'mcs', ale#path#CdString(g:dir)
\ . 'mcs -unsafe -out:TEMP -t:module -recurse:' . ale#Escape('*.cs')
Execute(The options should be be used in the command):
let g:ale_cs_mcsc_options = '-pkg:dotnet'
2018-10-23 14:20:27 +00:00
AssertLinter 'mcs', ale#path#CdString(g:dir)
\ . 'mcs -unsafe -pkg:dotnet -out:TEMP -t:module -recurse:' . ale#Escape('*.cs')
Execute(The souce path should be be used in the command):
let g:ale_cs_mcsc_source = '../foo/bar'
2018-10-23 14:20:27 +00:00
AssertLinter 'mcs', ale#path#CdString('../foo/bar')
\ . 'mcs -unsafe -out:TEMP -t:module -recurse:' . ale#Escape('*.cs')
Execute(The list of search pathes for assemblies should be be used in the command if not empty):
2017-10-18 22:42:51 +00:00
let g:ale_cs_mcsc_assembly_path = ['/usr/lib/mono', '../foo/bar']
2018-10-23 14:20:27 +00:00
AssertLinter 'mcs', ale#path#CdString(g:dir)
\ . 'mcs -unsafe'
\ . ' -lib:' . ale#Escape('/usr/lib/mono') . ',' . ale#Escape('../foo/bar')
\ . ' -out:TEMP -t:module -recurse:' . ale#Escape('*.cs')
2017-10-18 22:42:51 +00:00
let g:ale_cs_mcsc_assembly_path = []
2018-10-23 14:20:27 +00:00
AssertLinter 'mcs', ale#path#CdString(g:dir)
\ . 'mcs -unsafe -out:TEMP -t:module -recurse:' . ale#Escape('*.cs')
Execute(The list of assemblies should be be used in the command if not empty):
2017-10-18 22:42:51 +00:00
let g:ale_cs_mcsc_assemblies = ['foo.dll', 'bar.dll']
2018-10-23 14:20:27 +00:00
AssertLinter 'mcs', ale#path#CdString(g:dir)
\ . 'mcs -unsafe'
\ . ' -r:' . ale#Escape('foo.dll') . ',' . ale#Escape('bar.dll')
\ . ' -out:TEMP -t:module -recurse:' . ale#Escape('*.cs')
2017-10-18 22:42:51 +00:00
let g:ale_cs_mcsc_assemblies = []
2018-10-23 14:20:27 +00:00
AssertLinter 'mcs', ale#path#CdString(g:dir)
\ . 'mcs -unsafe -out:TEMP -t:module -recurse:' . ale#Escape('*.cs')