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); }
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); }