public void Win32AppsShouldSetNameAsTitleWhileCreatingResult() { var mock = new Mock <IPublicAPI>(); StringMatcher.Instance = new StringMatcher(); // Act var result = _cmderRunCommand.Result("cmder", string.Empty, mock.Object); // Assert Assert.IsTrue(result.Title.Equals(_cmderRunCommand.Name, StringComparison.Ordinal)); Assert.IsFalse(result.Title.Equals(_cmderRunCommand.Description, StringComparison.Ordinal)); }
public void Win32Apps_ShouldSetNameAsTitle_WhileCreatingResult() { var mock = new Mock <IPublicAPI>(); mock.Setup(x => x.GetTranslation(It.IsAny <string>())).Returns(It.IsAny <string>()); StringMatcher.Instance = new StringMatcher(); // Act var result = cmder_run_command.Result("cmder", mock.Object); // Assert Assert.IsTrue(result.Title.Equals(cmder_run_command.Name)); Assert.IsFalse(result.Title.Equals(cmder_run_command.Description)); }