Esempio n. 1
0
        public void AddStatusItemTest1()
        {
            StatusReport target = new StatusReport(); // TODO: Initialize to an appropriate value
            StatusItem statusItem = new StatusItem() {Caption = "Test Status Item"}; // TODO: Initialize to an appropriate value
            target.AddStatusItem(statusItem);
            Assert.AreEqual(1, target.Items.Count);

            StatusItem si = target.Items[0];
            Assert.AreSame(statusItem, si);
        }
Esempio n. 2
0
        public void AddStatusItemTest()
        {
            StatusReport target = new StatusReport(); // TODO: Initialize to an appropriate value
            Topic statusTopic = new Topic() {Caption = "Test Topic"}; // TODO: Initialize to an appropriate value
            target.AddStatusItem(statusTopic);
            Assert.AreEqual(1, target.Items.Count);

            StatusItem si = target.Items[0];
            Assert.AreEqual(statusTopic.Caption, si.Caption);
        }