-
Notifications
You must be signed in to change notification settings - Fork 9
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
1 parent
b00b7e2
commit 6ec27ae
Showing
62 changed files
with
817 additions
and
203 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# [vNext] | ||
|
||
* Support for .NET 8 projects | ||
* New editor command: "Go To Hooks" (Ctrl B,H) to navigate to the hooks related to the scenario | ||
* The "Go To Definition" lists hooks when invoked from scenario header (tags, header line, description) | ||
* Initial release based on v2022.1.91 of the [SpecFlow for Visual Studio](https://github.com/SpecFlowOSS/SpecFlow.VS/) extension. |
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
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
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
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
14 changes: 14 additions & 0 deletions
14
...ors/Reqnroll.VisualStudio.ReqnrollConnector.Generic/ReqnrollProxies/HookBindingAdapter.cs
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,14 @@ | ||
using Reqnroll.Bindings.Provider.Data; | ||
|
||
namespace ReqnrollConnector.ReqnrollProxies; | ||
|
||
public record HookBindingAdapter(HookData Adaptee) : IScopedBindingAdapter | ||
{ | ||
public string HookType => Adaptee.Type; | ||
public BindingMethodAdapter Method { get; } = new(Adaptee.Source?.Method); | ||
public bool IsScoped => Adaptee.Scope != null; | ||
public string? BindingScopeTag => Adaptee.Scope?.Tag; | ||
public string? BindingScopeFeatureTitle => Adaptee.Scope?.FeatureTitle; | ||
public string? BindingScopeScenarioTitle => Adaptee.Scope?.ScenarioTitle; | ||
public int? HookOrder => Adaptee.HookOrder; | ||
} |
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
2 changes: 2 additions & 0 deletions
2
Connectors/Reqnroll.VisualStudio.ReqnrollConnector.Generic/ReqnrollProxies/StepDefinition.cs
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
7 changes: 0 additions & 7 deletions
7
Connectors/Reqnroll.VisualStudio.ReqnrollConnector.Generic/ReqnrollProxies/StepScope.cs
This file was deleted.
Oops, something went wrong.
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
43 changes: 43 additions & 0 deletions
43
Connectors/Reqnroll.VisualStudio.ReqnrollConnector.Models/Hook.cs
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,43 @@ | ||
#nullable disable | ||
namespace Reqnroll.VisualStudio.ReqnrollConnector.Models; | ||
|
||
public class Hook | ||
{ | ||
public string Type { get; set; } | ||
public int? HookOrder { get; set; } | ||
public string Method { get; set; } | ||
//public string ParamTypes { get; set; } | ||
public StepScope Scope { get; set; } | ||
|
||
public string SourceLocation { get; set; } | ||
|
||
#region Equality | ||
|
||
protected bool Equals(Hook other) | ||
{ | ||
return Type == other.Type && HookOrder == other.HookOrder && Method == other.Method && Equals(Scope, other.Scope) && SourceLocation == other.SourceLocation; | ||
} | ||
|
||
public override bool Equals(object obj) | ||
{ | ||
if (ReferenceEquals(null, obj)) return false; | ||
if (ReferenceEquals(this, obj)) return true; | ||
if (obj.GetType() != this.GetType()) return false; | ||
return Equals((Hook)obj); | ||
} | ||
|
||
public override int GetHashCode() | ||
{ | ||
unchecked | ||
{ | ||
var hashCode = (Type != null ? Type.GetHashCode() : 0); | ||
hashCode = (hashCode * 397) ^ HookOrder.GetHashCode(); | ||
hashCode = (hashCode * 397) ^ (Method != null ? Method.GetHashCode() : 0); | ||
hashCode = (hashCode * 397) ^ (Scope != null ? Scope.GetHashCode() : 0); | ||
hashCode = (hashCode * 397) ^ (SourceLocation != null ? SourceLocation.GetHashCode() : 0); | ||
return hashCode; | ||
} | ||
} | ||
|
||
#endregion | ||
} |
Oops, something went wrong.