public void ToString_WithoutTaxon_EmptyString() { var item = new CollectionItem { Taxon = null }; Assert.IsTrue(string.IsNullOrEmpty(item.Format("{GENUS} {taxon}"))); }
private void AssertFormat(string expected, string format) { Assert.AreEqual(expected, _collectionItem.Format(format)); }