SIL.FieldWorks.IText.InterlinSfmImportTests.VerifyItem C# (CSharp) Method

VerifyItem() private method

private VerifyItem ( System.Xml.Linq.XElement textElt, string xpath, string expectedLang, string expectedValue ) : void
textElt System.Xml.Linq.XElement
xpath string
expectedLang string
expectedValue string
return void
		private void VerifyItem(XElement textElt, string xpath, string expectedLang, string expectedValue)
		{
			var item = textElt.XPathSelectElements(xpath).FirstOrDefault();
			Assert.That(item, Is.Not.Null);
			Assert.That(item.Attribute("lang").Value, Is.EqualTo(expectedLang));
			Assert.That(item.Value, Is.EqualTo(expectedValue));
		}
	}