Tests.EntryTest.EntryConstructorTest C# (CSharp) Method

EntryConstructorTest() private method

private EntryConstructorTest ( ) : void
return void
        public void EntryConstructorTest()
        {
            string description = "Some descriptions.";
            severityType severity = severityType.ERROR;
            IDictionary<string, object> properties = new Dictionary<String, Object>() { {"prop1", "asd"} };
            Entry target = new Entry(description, severity, properties);
            Assert.AreSame(description, target.Description);
            Assert.AreEqual(severity, target.Severity);
            Assert.AreEqual(1, target.Properties.Count);
            Assert.IsTrue(target.Properties.ContainsKey("prop1"));
            Assert.AreEqual("asd", target.Properties["prop1"]);
        }                
    }