예제 #1
0
        public void ParseNameNullException()
        {
            // Arrange.
            const string nameString = null;
            var          parser     = new TaskParser();

            // Act and assert.
            var name = parser.ParseName(nameString);
        }
예제 #2
0
        public void ParseNameReturnsVanillaName()
        {
            // Arrange.
            const string expectedName = "name";
            var          parser       = new TaskParser();

            // Act.
            var name = parser.ParseName(expectedName);

            // Assert.
            Assert.AreEqual(expectedName, name);
        }
예제 #3
0
        public void ParseNameReturnsTrimmedName()
        {
            // Arrange.
            const string nameString   = " name ";
            var          expectedName = nameString.Trim();
            var          parser       = new TaskParser();

            // Act.
            var name = parser.ParseName(nameString);

            // Assert.
            Assert.AreEqual(expectedName, name);
        }