コード例 #1
0
        public void TranslateErrorTest()
        {
            string inputString  = "Banana";
            string translateMap = "{Call,C}{Put,P}";
            string expected     = string.Format(CSVErrorMessages_Accessor.ErrorMsgMapEntryNotFound, inputString, translateMap);
            string actual;

            actual = CSVField_Accessor.Translate(inputString, translateMap);
            Assert.AreEqual(expected, actual);
        }
コード例 #2
0
        public void TranslateTest()
        {
            string inputString  = "PUT";
            string translateMap = "{Call,C}{Put,P}";
            string expected     = "P";
            string actual;

            actual = CSVField_Accessor.Translate(inputString, translateMap);
            Assert.AreEqual(expected, actual);
        }