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"); }
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")); }