Esempio n. 1
0
 public void PrimeEncode_TestString_EqualsQuotedTest()
 {
     Assert.AreEqual("\"Test\"", CsvCodec.Encode("Test"));
 }
Esempio n. 2
0
 public void PrimeEncode_TestWithSubQuotesString_EqualsQuotedEscapedTest()
 {
     Assert.AreEqual("\"Test \"\"Quote\"\"\"", CsvCodec.Encode("Test \"Quote\""));
 }
Esempio n. 3
0
 public void PrimeEncode_NullOrEmpty_EqualsStringEmpty()
 {
     Assert.AreEqual("\"\"", CsvCodec.Encode(null));
 }
Esempio n. 4
0
 public void PrimeDecode_QuotedEscapedTest_EqualsTestWithSubQuotes()
 {
     Assert.AreEqual("Test \"Quote\"", CsvCodec.Decode("\"Test \"\"Quote\"\"\""));
 }
Esempio n. 5
0
 public void PrimeDecode_QuotedEmptyString_EqualsEmptyString()
 {
     Assert.AreEqual(string.Empty, CsvCodec.Decode("\"\""));
 }
Esempio n. 6
0
 public void PrimeDecode_QuotedTestString_EqualsTest()
 {
     Assert.AreEqual("Test", CsvCodec.Decode("\"Test\""));
 }
Esempio n. 7
0
 public void PrimeDecode_NullOrEmpty_EqualsStringEmpty()
 {
     Assert.AreEqual(string.Empty, CsvCodec.Decode(null));
 }