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

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

            fDialog.SetViewHTML(stm);
            fDialog.Refresh();

            KeyDownForm(fDialog.Name, Keys.Escape);
        }
Exemple #2
0
        public void Test_HTML()
        {
            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");

            fDialog.SetViewHTML(stm);
            fDialog.Refresh();

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