Example #1
0
        public void ResourceCollectionAttribute_NameNoNeedTrim()
        {
            var name      = "Name" + Guid.NewGuid().ToString("N");
            var attribute = new ResourceCollectionAttribute(name);

            Assert.AreEqual(name, attribute.StorageName);
        }
Example #2
0
        public void ResourceCollectionAttribute_EmptyName()
        {
            var attribute = new ResourceCollectionAttribute(string.Empty);

            Assert.IsNull(attribute.StorageName);
        }
Example #3
0
        public void ResourceCollectionAttribute_BlankName()
        {
            var attribute = new ResourceCollectionAttribute(" \r\n ");

            Assert.IsNull(attribute.StorageName);
        }
Example #4
0
        public void ResourceCollectionAttribute_NullName()
        {
            var attribute = new ResourceCollectionAttribute(null);

            Assert.IsNull(attribute.StorageName);
        }