Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
mikavilpas committed Nov 29, 2014
2 parents 81fd267 + 0978c35 commit a5b991d
Show file tree
Hide file tree
Showing 13 changed files with 576 additions and 366 deletions.
2 changes: 2 additions & 0 deletions Cask
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

(development
(depends-on "ecukes")
(depends-on "ert-async")
(depends-on "noflet")
(depends-on "s")
(depends-on "ert-runner")
(depends-on "ert-runner")
(depends-on "el-mock")
Expand Down
28 changes: 28 additions & 0 deletions features/complete-overrides.feature
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)
"""
46 changes: 46 additions & 0 deletions features/find-implementations.feature
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{}"

21 changes: 21 additions & 0 deletions features/find-usages.feature
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 {}"
Loading

0 comments on commit a5b991d

Please sign in to comment.