Beispiel #1
0
		public void AddDescription_Add2ForSameLanguage_AddsOnlyTheFirst()
		{
			var desc1 = new LanguageString { Iso3LanguageId = "eng", Value = "First description"};
			var desc2 = new LanguageString { Iso3LanguageId = "eng", Value = "Second description" };

			var obj = new Corpus();
			obj.Description.Add(desc1);
			obj.Description.Add(desc2);

			Assert.AreEqual(1, obj.Description.Count);
			Assert.AreEqual("First description", obj.Description.First().Value);
		}
Beispiel #2
0
		private void ArbilCheckCorpus(Corpus corpus)
		{
			if (corpus.Description.Count == 0)
				corpus.Description.Add(new LanguageString());
		}