コード例 #1
0
        public void IsSearchTargetFound_LinearViewContainsSearchText_ReturnsTrue()
        {
            //arrange
            var serachOrientation = new SearchOrientation(new GridToLinearHorizontalStrategyMock(null));

            //act
            bool actual = serachOrientation.IsSearchTargetFound("BC");

            //assert
            Assert.True(actual);
        }
コード例 #2
0
        public void IsSearchTargetFound_ValueOfLinearViewIsNull_ReturnsFalse()
        {
            //arrange
            var serachOrientation = new SearchOrientation(new GridToLinearHorizontalStrategyNullLinearViewtMock(null));

            //act
            bool actual = serachOrientation.IsSearchTargetFound("BC");

            //assert
            Assert.False(actual);
        }
コード例 #3
0
        public void IsSearchTargetFound_PassEmptySearchTarget_ReturnsFalse()
        {
            //arrange
            ILinearView linearView        = null;
            var         serachOrientation = new SearchOrientation(linearView);

            //act
            bool actual = serachOrientation.IsSearchTargetFound("");

            //assert
            Assert.False(actual);
        }