Exemple #1
0
        public void EventCollectionAttribute_SourceNameNoTrim()
        {
            var name      = "name" + Guid.NewGuid().ToString("N");
            var attribute = new EventCollectionAttribute(name);

            Assert.AreEqual(name, attribute.SourceName);
        }
Exemple #2
0
        public void EventCollectionAttribute_EmptySourceName()
        {
            var attribute = new EventCollectionAttribute(string.Empty);

            Assert.IsNull(attribute.SourceName);
        }
Exemple #3
0
        public void EventCollectionAttribute_BlankSourceName()
        {
            var attribute = new EventCollectionAttribute("  \r\n \t  ");

            Assert.IsNull(attribute.SourceName);
        }
Exemple #4
0
        public void EventCollectionAttribute_NullSourceName()
        {
            var attribute = new EventCollectionAttribute(null);

            Assert.IsNull(attribute.SourceName);
        }