-
Notifications
You must be signed in to change notification settings - Fork 754
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: Emil Tzvetkov <[email protected]>
- Loading branch information
1 parent
7a9209c
commit 5e14699
Showing
7 changed files
with
99 additions
and
53 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
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
34 changes: 34 additions & 0 deletions
34
Tests/TechTalk.SpecFlow.RuntimeTests/AssistTests/TestInfrastructure/AliasedTestObject.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,34 @@ | ||
using TechTalk.SpecFlow.Assist.Attributes; | ||
|
||
namespace TechTalk.SpecFlow.RuntimeTests.AssistTests.TestInfrastructure | ||
{ | ||
public class AliasedTestObject | ||
{ | ||
[TableAliases("Alias[ ]*One", "First[ ]?Name", "^Known As$")] | ||
public string PropertyOne { get; set; } | ||
|
||
[TableAliases("Alias[ ]*Two", "Middle[ ]?Name", "^Never Known As$")] | ||
public string PropertyTwo { get; set; } | ||
|
||
[TableAliases("AliasThree")] | ||
[TableAliases("Surname")] | ||
[TableAliases("Last[ ]?name")] | ||
[TableAliases("Dad's Last Name")] | ||
public string PropertyThree { get; set; } | ||
|
||
#pragma warning disable 649 | ||
[TableAliases("FieldAliasOne")] | ||
public string FieldOne; | ||
[TableAliases("FieldAliasTwo")] | ||
public string FieldTwo; | ||
[TableAliases("FieldAliasThree")] | ||
public string FieldThree; | ||
#pragma warning restore 649 | ||
|
||
[TableAliases("AliasOne")] | ||
public string AnotherPropertyWithSameAlias { get; set; } | ||
|
||
[TableAliases("AliasOne")] | ||
public long AliasedButTypeMismatch { get; set; } | ||
} | ||
} |
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