コード例 #1
0
        public void TestThatSBEmailHeadersCollectionReturnsCorrectNumberOfUnreadEntries()
        {
            int iNumberOfUnreadEntries = 2;

            SBEmailHeaders sbEmailHeaders = new SBEmailHeaders();

            for (int i = 0; i < iNumberOfUnreadEntries; ++i)
            {
                SBEmailHeaders.SBEmailHeader sbEmailHeaderUnread = new SBEmailHeaders.SBEmailHeader();
                sbEmailHeaderUnread.m_bRead = false;
                sbEmailHeaders.Add(sbEmailHeaderUnread);
            }

            SBEmailHeaders.SBEmailHeader sbEmailHeaderRead = new SBEmailHeaders.SBEmailHeader();
            sbEmailHeaderRead.m_bRead = true;
            sbEmailHeaders.Add(sbEmailHeaderRead);

            Assert.That(sbEmailHeaders.NumberOfUnreadEntries, Is.EqualTo(iNumberOfUnreadEntries));
        }
コード例 #2
0
        public void TestThatSBEmailHeadersCollectionReturnsCorrectNumberOfEntries()
        {
            int            iNumberOfEntries = 2;
            SBEmailHeaders sbEmailHeaders   = new SBEmailHeaders();

            for (int i = 0; i < iNumberOfEntries; ++i)
            {
                sbEmailHeaders.Add(new SBEmailHeaders.SBEmailHeader());
            }

            Assert.That(sbEmailHeaders.NumberOfEntries, Is.EqualTo(iNumberOfEntries));
        }