test_mcs_handler.vader
1 Before: 2 runtime ale_linters/cs/mcs.vim 3 4 After: 5 call ale#linter#Reset() 6 7 Execute(The mcs handler should handle cannot find symbol errors): 8 AssertEqual 9 \ [ 10 \ { 11 \ 'lnum': 12, 12 \ 'col' : 29, 13 \ 'text': '; expected', 14 \ 'code': 'CS1001', 15 \ 'type': 'E', 16 \ }, 17 \ { 18 \ 'lnum': 101, 19 \ 'col': 0, 20 \ 'text': 'Unexpected processor directive (no #if for this #endif)', 21 \ 'code': 'CS1028', 22 \ 'type': 'E', 23 \ }, 24 \ { 25 \ 'lnum': 10, 26 \ 'col': 12, 27 \ 'text': 'some warning', 28 \ 'code': 'CS0123', 29 \ 'type': 'W', 30 \ }, 31 \ ], 32 \ ale_linters#cs#mcs#Handle(347, [ 33 \ 'Tests.cs(12,29): error CS1001: ; expected', 34 \ 'Tests.cs(101,0): error CS1028: Unexpected processor directive (no #if for this #endif)', 35 \ 'Tests.cs(10,12): warning CS0123: some warning', 36 \ 'Compilation failed: 2 error(s), 1 warnings', 37 \ ])