Example #1
0
        public void TestNoDefaultToolTips()
        {
            RendererModel model = new RendererModel();

            // test: no default tool tips
            Assert.IsNull(model.GetToolTipText(new Atom()));
            // but a non-null map
            Assert.IsNotNull(model.GetToolTipTextMap());
        }
Example #2
0
        public void TestToolTipFunctionality()
        {
            var   tips     = new Dictionary <IAtom, string>();
            IAtom anonAtom = new Atom();

            tips[anonAtom] = "Repelsteeltje";
            RendererModel model = new RendererModel();

            model.SetToolTipTextMap(tips);
            Assert.AreEqual(tips, model.GetToolTipTextMap());
            Assert.AreEqual("Repelsteeltje", model.GetToolTipText(anonAtom));
        }