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