-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
576 additions
and
366 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Feature: Complete overrides | ||
|
||
Background: | ||
Given I open temp file "some-file.cs" | ||
Given The buffer is empty | ||
|
||
Scenario: Complete overrides in the current buffer with ido | ||
When My buffer contents are, and my point is at $: | ||
""" | ||
namespace Test { | ||
public class Awesome { | ||
$ | ||
} | ||
} | ||
""" | ||
Given I start an action chain | ||
And I press "M-x" | ||
And I type "omnisharp-auto-complete-overrides" | ||
# Finish M-x | ||
And I press "RET" | ||
# Select the first proposed override | ||
And I press "RET" | ||
And I execute the action chain | ||
|
||
Then I should see, ignoring line endings: | ||
""" | ||
public override bool Equals(object obj) | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
Feature: Find implementations | ||
|
||
Scenario: Jump to the only implementation | ||
Given I open the Omnisharp server source file "minimal/MyClassContainer.cs" | ||
When My buffer contents are, and my point is at $: | ||
""" | ||
using System; | ||
namespace minimal | ||
{ | ||
public class MyClassContainer | ||
{ | ||
public My$Class foo; | ||
} | ||
public class test : MyClass{} | ||
} | ||
""" | ||
And I evaluate the command "(omnisharp-find-implementations)" | ||
And I wait "1" seconds | ||
Then point should be on a line containing "public class test : MyClass{}" | ||
|
||
Scenario: Show a list of implementations when there is more than one | ||
Given I open the Omnisharp server source file "minimal/MyClassContainer.cs" | ||
When My buffer contents are, and my point is at $: | ||
""" | ||
using System; | ||
namespace minimal | ||
{ | ||
public class MyClassContainer | ||
{ | ||
public My$Class foo; | ||
} | ||
public class test : MyClass{} | ||
public class test2 : MyClass{} | ||
} | ||
""" | ||
And I evaluate the command "(omnisharp-find-implementations)" | ||
And I wait "1" seconds | ||
|
||
When I switch to the existing buffer "* OmniSharp : Implementations *" | ||
Then I should see "public class test : MyClass{}" | ||
Then I should see "public class test2 : MyClass{}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Feature: Find usages | ||
|
||
Scenario: Find usages of a symbol | ||
Given I open the Omnisharp server source file "minimal/MyClassContainer.cs" | ||
When My buffer contents are, and my point is at $: | ||
""" | ||
using System; | ||
namespace minimal | ||
{ | ||
public class Target {} | ||
public class JumpSite { | ||
Targ$et foo; // go to definition from here | ||
} | ||
} | ||
""" | ||
And I evaluate the command "(omnisharp-find-usages)" | ||
And I wait "1" seconds | ||
When I switch to the existing buffer "* OmniSharp : Usages *" | ||
Then I should see "Usages in the current solution:" | ||
Then I should see "public class Target {}" |
Oops, something went wrong.