Created
January 14, 2020 10:46
-
-
Save YevgeniyShunevych/2aeb7726218bc785a7ba99c67425191f to your computer and use it in GitHub Desktop.
SetAndAssert Atata extension method.
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
namespace Atata | |
{ | |
public static class EditableFieldExtensions | |
{ | |
public static TOwner SetAndAssert<T, TOwner>(this EditableField<T, TOwner> editableField, T value) | |
where TOwner : PageObject<TOwner> | |
{ | |
editableField.Set(value); | |
return editableField.Should.Equal(value); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment