private static void AssertPropertyHasExpectedMultiText(WeSayDataObject dataObject, string name) { //must match what is created by MakeBasicLiftMultiText() MultiText mt = dataObject.GetProperty<MultiText>(name); Assert.AreEqual(2, mt.Forms.Length); Assert.AreEqual("dos", mt["ws-two"]); }
private void WriteWellKnownCustomMultiText(WeSayDataObject item, string property, ICollection<string> propertiesAlreadyOutput) { if (ShouldOutputProperty(property)) { MultiText m = item.GetProperty<MultiText>(property); if (WriteMultiWithWrapperIfNonEmpty(property, property, m)) { propertiesAlreadyOutput.Add(property); } } }