public void TestAll() { var msg = new GojulValidationErrorMessage <string, string>("hello", "world"); Assert.Equal("hello", msg.UiTarget); Assert.Equal("world", msg.Message); }
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]); }