public void Execute_PassWordAndVocabularyReturnEmptyResults_ReturnNoSuchWord() { // Arrange var word = "aaa"; var command = new GetCommand(VocabularyStubFactory.Get(word, new string[0])); // Act var result = command.Execute(new [] { word }); // Assert Assert.AreEqual(result, Default.NoSuchWord); }
public void Execute_PassWordAndVocabularyReturnsMeans_ReturnMeansLineByLine() { // Arrange var word = "aaa"; var means = new [] { "bbb", "ccc" }; var command = new GetCommand(VocabularyStubFactory.Get(word, means)); // Act var result = command.Execute(new[] { word }); // Assert Assert.AreEqual(result, $"{means[0]}\r\n{means[1]}\r\n"); }