Пример #1
0
        public void TestAll()
        {
            var msg = new GojulValidationErrorMessage <string, string>("hello", "world");

            Assert.Equal("hello", msg.UiTarget);
            Assert.Equal("world", msg.Message);
        }
Пример #2
0
        public void TestAddError()
        {
            var errorMsgContainer = new GojulValidationErrorMessageContainer <string, string>();

            var msg = new GojulValidationErrorMessage <string, string>("hello", "world");

            errorMsgContainer.AddError(msg);

            Assert.Equal(1, errorMsgContainer.Messages.Count);
            Assert.Equal(msg, errorMsgContainer.Messages[0]);
        }