コード例 #1
0
        public void ToString_WithoutTaxon_EmptyString()
        {
            var item = new CollectionItem {
                Taxon = null
            };

            Assert.IsTrue(string.IsNullOrEmpty(item.Format("{GENUS} {taxon}")));
        }
コード例 #2
0
 private void AssertFormat(string expected, string format)
 {
     Assert.AreEqual(expected, _collectionItem.Format(format));
 }