Example #1
0
        public void Parse_MaxRetries_ReturnsCorrectResult(string tag, int maxRetries)
        {
            // Arrange
            RetryTagParser parser   = getParser();
            RetryTag       expected = new RetryTag(maxRetries, null);

            // Act
            RetryTag actual = parser.Parse(tag);

            // Assert
            Assert.AreEqual(expected, actual);
        }
Example #2
0
        public void Parse_NoParams_CorrectResult()
        {
            // Arrange
            RetryTagParser parser   = getParser();
            RetryTag       expected = new RetryTag(null, null);

            // Act
            RetryTag actual = parser.Parse("retry");

            // Assert
            Assert.AreEqual(expected, actual);
        }