diff --git a/test/buttercup-tests/setup.el b/test/buttercup-tests/setup.el index 7878fd5c..edc19a4d 100644 --- a/test/buttercup-tests/setup.el +++ b/test/buttercup-tests/setup.el @@ -92,6 +92,8 @@ request id." (beginning-of-buffer) (search-forward "$") (delete-backward-char 1) + (message (concat "ot--buffer-contents-and-point-at-$: (thing-at-point 'word) is" + (thing-at-point 'word))) ;; will block (omnisharp--update-buffer) (when (fboundp 'evil-insert) diff --git a/test/buttercup-tests/solution/code-actions/fix-code-issue-test.el b/test/buttercup-tests/solution/code-actions/fix-code-issue-test.el index 3b7b7ed7..34ae21f2 100644 --- a/test/buttercup-tests/solution/code-actions/fix-code-issue-test.el +++ b/test/buttercup-tests/solution/code-actions/fix-code-issue-test.el @@ -3,17 +3,21 @@ ;; Test a few different kinds of code actions to see we can support ;; each one in a sensible manner. (describe "Fix code issue" - (before-each (ot--open-the-minimal-project-source-file "MyClass.cs")) + (before-each (ot--open-the-minimal-project-source-file "MyClass1.cs")) (it "can act on a simple part of the buffer (using System;)" (ot--buffer-contents-and-point-at-$ - "public class Class1" - "{" - " public void Whatever()" + "namespace MyNamespace {" + " public class Class1" " {" - " Gu$id.NewGuid();" + " public void Whatever()" + " {" + " Gu$id.NewGuid();" + " }" " }" "}") - (ot--answer-omnisharp--completing-read-with (lambda (choices) "using System;")) + (ot--answer-omnisharp--completing-read-with (lambda (choices) + (message (concat "the choices are: " (json-encode choices))) + "using System;")) (omnisharp--wait-until-request-completed (omnisharp-run-code-action-refactoring)) (ot--buffer-should-contain "using System;"))