public void AssertWordsEqual(params string[] expectedWords) { TableFormLineAsserted?.Invoke(this, $"Assert line words are {expectedWords}"); CollectionAssert.AreEqual(expectedWords, Words, "Expected words are different than the actual ones present on the line."); }
public void AssertWordsContain(params string[] expectedWords) { TableFormLineAsserted?.Invoke(this, $"Assert line words contain the words: {expectedWords}"); CollectionAssert.IsSubsetOf(expectedWords, Words, "Expected words are different than the actual ones present on the line."); }
public void AssertWordsCount(int expectedWordsCount) { TableFormLineAsserted?.Invoke(this, $"Assert line words' count = {expectedWordsCount}"); Assert.AreEqual(expectedWordsCount, _formLine.Words.Count, $"Line words' count != {expectedWordsCount}"); }