예제 #1
0
        public void CodeBookValidateItemTest(string key, string value)
        {
            CodeBookReaderService service = new CodeBookReaderService();
            CodeBookCollection    source  = service.Get();

            bool flag = source.IsValidValue(key, value, out string message);

            Assert.True(flag, message);
        }
예제 #2
0
        public void CodeBookFailedItemTest(string key, string value)
        {
            CodeBookReaderService service = new CodeBookReaderService();
            CodeBookCollection    source  = service.Get();

            bool flag = source.IsValidValue(key, value, out string message);

            Assert.False(flag);

            this.Output.WriteLine(message);
        }