private void AddRelation()
        {
            LexRelationCollection synonyms =
                _source.GetOrCreateProperty <LexRelationCollection>("synonyms");
            LexRelation r = new LexRelation("synonyms", _target.GetOrCreateId(true), _source);

            synonyms.Relations.Add(r);
        }
Ejemplo n.º 2
0
        public void Cleanup_HasBaseform_PropertyIsNotRemoved()
        {
            var target = new LexEntry();

            _entry = new LexEntry();
            _entry.LexicalForm["v"] = "hello";
            _entry.AddRelationTarget(LexEntry.WellKnownProperties.BaseForm, target.GetOrCreateId(true));
            _entry.CleanUpAfterEditting();
            Assert.IsNotNull(_entry.GetProperty <LexRelationCollection>(LexEntry.WellKnownProperties.BaseForm));
        }