コード例 #1
0
        public void Encoding2()
        {
            var iCal = Calendar.LoadFromStream(new StringReader(IcsFiles.Encoding2))[0];

            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.");
        }
コード例 #2
0
        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.");
        }