public void Encoding2() { var iCal = Calendar.Load(IcsFiles.Encoding2); ProgramTest.TestCal(iCal); var evt = iCal.Events.First(); Assert.AreEqual( "This is a test to try out base64 encoding without being too large.\r\n" + "This is a test to try out base64 encoding without being too large.\r\n" + "This is a test to try out base64 encoding without being too large.\r\n" + "This is a test to try out base64 encoding without being too large.\r\n" + "This is a test to try out base64 encoding without being too large.\r\n" + "This is a test to try out base64 encoding without being too large.\r\n" + "This is a test to try out base64 encoding without being too large.\r\n" + "This is a test to try out base64 encoding without being too large.\r\n" + "This is a test to try out base64 encoding without being too large.\r\n" + "This is a test to try out base64 encoding without being too large.\r\n" + "This is a test to try out base64 encoding without being too large.\r\n" + "This is a test to try out base64 encoding without being too large.", evt.Attachments[0].ToString(), "Attached value does not match."); }
public void Encoding2() { var iCal = SimpleDeserializer.Default.Deserialize(new StringReader(IcsFiles.Encoding2)).Cast <Calendar>().Single(); ProgramTest.TestCal(iCal); var evt = iCal.Events.First(); Assert.AreEqual( "This is a test to try out base64 encoding without being too large.\r\n" + "This is a test to try out base64 encoding without being too large.\r\n" + "This is a test to try out base64 encoding without being too large.\r\n" + "This is a test to try out base64 encoding without being too large.\r\n" + "This is a test to try out base64 encoding without being too large.\r\n" + "This is a test to try out base64 encoding without being too large.\r\n" + "This is a test to try out base64 encoding without being too large.\r\n" + "This is a test to try out base64 encoding without being too large.\r\n" + "This is a test to try out base64 encoding without being too large.\r\n" + "This is a test to try out base64 encoding without being too large.\r\n" + "This is a test to try out base64 encoding without being too large.\r\n" + "This is a test to try out base64 encoding without being too large.", evt.Attachments[0].ToString(), "Attached value does not match."); }