private void PrintStatus()
 {
     _print.AddHeader(_severityStatus.displayName);
     _print.AddRoadStatusText("statusSeverity", _severityStatus.statusSeverity);
     _print.AddRoadStatusText("statusSeverityDescription", _severityStatus.statusSeverityDescription);
     _print.PrintStatus();
 }
Exemplo n.º 2
0
        public void When_AddHeaderText_StatusSeverity_Is_Executed_Returns_AddedText()
        {
            string key          = "statusSeverity";
            string text         = "Good";
            string expectedText = "\tRoad Status is Good\r\n";

            _print.AddRoadStatusText(key, text);

            var content = _print.Message.ToString();

            Assert.Equal(expectedText, content);
        }