Beispiel #1
0
        public void ProvidedMessage_Should_Be_LimitWarningMsg_Message()
        {
            // Act
            var channelProp = new LimitWarningMessageOnFirstRunProperty("Warning Message");

            // Assert
            AssertChannelProp(channelProp, "Warning Message");
        }
Beispiel #2
0
        public void ProvidedMessage_Over_Max_Length_Should_Be_LimitWarningMsg_TruncatedMessage()
        {
            // Arrange
            var message = string.Concat(Enumerable.Repeat("x", 257));

            // Act
            var channelProp = new LimitWarningMessageOnFirstRunProperty(message);

            // Assert
            AssertChannelProp(channelProp, string.Concat(Enumerable.Repeat("x", 255)) + "…");
        }