예제 #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.");
 }
예제 #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.");
 }
예제 #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}");
 }