Пример #1
0
        public void GetTokensNotMatchReturnsNull()
        {
            // Arrange.
            var parser = new TaskParser();

            // Act.
            var tokens = parser.GetTokens("");

            // Assert.
            Assert.IsNull(tokens);
        }
Пример #2
0
        public void GetTokensMatchReturnsTokens()
        {
            // Arrange.
            var parser = new TaskParser();

            // Act.
            var tokens = parser.GetTokens(ValidSimpleSerializedTask);

            // Assert.
            Assert.AreEqual(TaskPri, tokens.Item1);
            Assert.AreEqual(TaskStat, tokens.Item2);
            Assert.AreEqual(TaskName, tokens.Item3);
        }