Ejemplo n.º 1
0
 public void EncodingPersonHeaderToFixedStringPasses()
 {
     var person = new Person() { Id = 123, Name = "Elvis Presley" };
     var writer = new TabFileWriter<Person>();
     var line = writer.MakeHeader(person);
     Assert.AreEqual("Id\tName", line);
 }
Ejemplo n.º 2
0
 public void EncodingEntityWithoutAttributeFailes()
 {
     var person = new PersonWithoutAttributes() { Id = 123, Name = "Elvis Presley" };
     var writer = new TabFileWriter<PersonWithoutAttributes>();
     var line = writer.MakeHeader(person);
 }