public void End_Of_Stream_Returns_Null()
        {
            string actual;
            using (StringReader sr = new StringReader(String.Empty))
            {
                VCardReader vcr = new VCardReader();
                actual = vcr.ReadUnfoldedLine(sr);
            }

            Assert.IsNull(actual);
        }
 private static VCardEntity GetVCardEntity(string vcardLine)
 {
     VCardReader r = new VCardReader();
     using (var sr = new System.IO.StringReader(vcardLine))
     {
         return r.ReadEntity(sr);
     }
 }
 private string CallReadUnfoldedLine(string input)
 {
     using (StringReader sr = new StringReader(input))
     {
         VCardReader vcr = new VCardReader();
         return vcr.ReadUnfoldedLine(sr);
     }
 }
Esempio n. 4
0
 private VCardEntity ReadVCardEntity(string input)
 {
     using (StringReader sr = new StringReader(input))
     {
         VCardReader vcr = new VCardReader();
         return vcr.ReadEntity(sr);
     }
 }