コード例 #1
0
        public void WhiteSpaceNextReturnsTrueWhenItShould(string whitespace)
        {
            //Arrange
            var keeper = new StringKeeper(whitespace);

            //Act/Assert
            keeper.WhiteSpaceNext().Should().BeTrue();
        }
コード例 #2
0
        public void WhiteSpaceNextReturnsFalseForNonWhitespace()
        {
            //Arrange
            var keeper = new StringKeeper("non whitespace"); //only 'n' will be considered

            //Act/Assert
            keeper.WhiteSpaceNext().Should().BeFalse();
        }
コード例 #3
0
        public void WhiteSpaceNextReturnsFalseForEmptyInput()
        {
            //Arrange
            var keeper = new StringKeeper(string.Empty);

            //Act/Assert
            keeper.WhiteSpaceNext().Should().BeFalse();
        }