示例#1
0
        public void CloneCopiesAllTheProperties()
        {
            LogMessagesGroup item = CommonTestHelpers.Factory.CreateLogMessagesGroup();

            System.Threading.Thread.Sleep(100);

            LogMessagesGroup clone = item.Clone();

            Assert.AreEqual(JsonSerializer.Serialize(item), JsonSerializer.Serialize(clone));
        }
示例#2
0
 public void NullMessagesThrowsException()
 {
     LogMessagesGroup item = new LogMessagesGroup(Constants.DefaultLoggerCategoryName, null);
 }
示例#3
0
 public void NullCategoryNameThrowsException(string categoryName)
 {
     LogMessagesGroup item = new LogMessagesGroup(categoryName, new List <LogMessage>());
 }