public void GetAnnotationPropertyFrom_InvalidExpression_ReturnsNulls() { var(item, list) = DocxParser.GetAnnotationPropertyFrom("Some property [propaddress] [someclassaddr its value]]"); Assert.IsNull(item); Assert.IsNull(list); }
public void GetAnnotationPropertyFrom_ValidExpression_ReturnsAnnotationPropertyInstant() { var(item, list) = DocxParser.GetAnnotationPropertyFrom("Some property [propaddress] [someclassaddr [its value]]"); Assert.AreEqual(item.IriAddress, "propaddress"); Assert.AreEqual(item.Name, "Some property"); Assert.AreEqual(list[0].Item1, "someclassaddr"); Assert.AreEqual(list[0].Item2, "its value"); }