Пример #1
0
        public void ParseLastToken_Should_Return_Empty_String(string code)
        {
            // arrange
            var parser = new CompletionsParser();

            // act
            var lastToken = parser.ParseLastToken(code);

            // assert
            Assert.That(lastToken, Is.Not.Null.And.Empty);
        }
Пример #2
0
        public string ParseLastToken_Should_Return_Expected(string code)
        {
            // arrange
            var parser = new CompletionsParser();

            // act
            var lastToken = parser.ParseLastToken(code);

            // assert
            Assert.That(lastToken, Is.Not.Null.And.Not.Empty);

            return(lastToken);
        }