Exemplo n.º 1
0
        public void ParseCharacterIdentificationTests()
        {
            var parseChar = FileProcessor.DetermineParseCharacter("FileProcessorTestsspaceFile.txt");

            Assert.AreEqual(parseChar, " ");

            parseChar = FileProcessor.DetermineParseCharacter("FileProcessorTestscommaFile.txt");
            Assert.AreEqual(parseChar, ",");

            parseChar = FileProcessor.DetermineParseCharacter("FileProcessorTestspipeFile.txt");
            Assert.AreEqual(parseChar, "|");

            parseChar = FileProcessor.DetermineParseCharacterforLine("FP3gaudette|kady|female|red|11/15/2012");
            Assert.AreEqual(parseChar, "|");
        }