public void Test_RTF()
        {
            Assert.AreEqual(null, fDialog.FileRef);
            fDialog.FileRef = fileRef;
            Assert.AreEqual(fileRef, fDialog.FileRef);

            Stream stm = TestUtils.LoadResourceStream("lorem_ipsum.txt");
            string text;

            using (StreamReader strd = new StreamReader(stm, Encoding.UTF8)) {
                text = strd.ReadToEnd();
            }

            fDialog.SetViewRTF(text);
            fDialog.Refresh();

            KeyDownForm(fDialog.Name, Keys.Escape);
        }
Exemple #2
0
        public void Test_RTF()
        {
            Assert.AreEqual(null, fDialog.FileRef);
            fDialog.FileRef = fileRef;
            Assert.AreEqual(fileRef, fDialog.FileRef);

            Assembly assembly = typeof(CoreTests).Assembly;
            Stream   stm      = assembly.GetManifestResourceStream("GKTests.Resources.lorem_ipsum.txt");
            string   text;

            using (StreamReader strd = new StreamReader(stm, Encoding.UTF8)) {
                text = strd.ReadToEnd();
            }

            fDialog.SetViewRTF(text);
            fDialog.Refresh();

            KeyDownForm(fDialog.Name, Keys.Escape);
        }