Exemplo n.º 1
0
        public void SetAnnotation()
        {
            MultiTextBase multiTextBase = new MultiTextBase();

            multiTextBase.SetAnnotationOfAlternativeIsStarred("zz", true);
            Assert.AreEqual(String.Empty, multiTextBase.GetExactAlternative("zz"));
            Assert.IsTrue(multiTextBase.GetAnnotationOfAlternativeIsStarred("zz"));
            multiTextBase.SetAnnotationOfAlternativeIsStarred("zz", false);
            Assert.IsFalse(multiTextBase.GetAnnotationOfAlternativeIsStarred("zz"));
        }
Exemplo n.º 2
0
        public void AnnotationOfMisssingAlternative()
        {
            MultiTextBase multiTextBase = new MultiTextBase();

            Assert.IsFalse(multiTextBase.GetAnnotationOfAlternativeIsStarred("zz"));
            Assert.IsFalse(multiTextBase.ContainsAlternative("zz"), "should not cause the creation of the alt");
        }