Пример #1
0
        public void MessageValidator_When_Valid_Input_Returns_True()
        {
            string message = "Hello my name is, name";
            var    messageValidatorService = new MessageValidatorService();
            var    result = messageValidatorService.IsValidMessage(message);

            Assert.AreEqual(true, result);
        }
Пример #2
0
        public void MessageValidator_When_Empty_Input_Returns_False()
        {
            string message = string.Empty;
            var    messageValidatorService = new MessageValidatorService();
            var    result = messageValidatorService.IsValidMessage(message);

            Assert.AreEqual(false, result);
        }