Exemple #1
0
 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.");
 }
Exemple #2
0
 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.");
 }
Exemple #3
0
 public void AssertWordsCount(int expectedWordsCount)
 {
     TableFormLineAsserted?.Invoke(this, $"Assert line words' count = {expectedWordsCount}");
     Assert.AreEqual(expectedWordsCount, _formLine.Words.Count, $"Line words' count != {expectedWordsCount}");
 }