public void IsSearchTargetFound_LinearViewContainsSearchText_ReturnsTrue() { //arrange var serachOrientation = new SearchOrientation(new GridToLinearHorizontalStrategyMock(null)); //act bool actual = serachOrientation.IsSearchTargetFound("BC"); //assert Assert.True(actual); }
public void IsSearchTargetFound_ValueOfLinearViewIsNull_ReturnsFalse() { //arrange var serachOrientation = new SearchOrientation(new GridToLinearHorizontalStrategyNullLinearViewtMock(null)); //act bool actual = serachOrientation.IsSearchTargetFound("BC"); //assert Assert.False(actual); }
public void IsSearchTargetFound_PassEmptySearchTarget_ReturnsFalse() { //arrange ILinearView linearView = null; var serachOrientation = new SearchOrientation(linearView); //act bool actual = serachOrientation.IsSearchTargetFound(""); //assert Assert.False(actual); }