Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

one assert per test #1

Open
nfma opened this issue May 13, 2016 · 0 comments
Open

one assert per test #1

nfma opened this issue May 13, 2016 · 0 comments

Comments

@nfma
Copy link

nfma commented May 13, 2016

https://github.com/EqualExperts/contact-list/blob/master/ContactListUITest/ContactList/ListTest.cs#L42 this should have mapped the function FindElementByClassName over the array, like this (in pseudo code):

Assert.Equal(items.map(FindElementByClassName), ["Ze", "Carlos", "Alberto"])

This way you only need a single assert

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant