Пример #1
0
        public static void TestFindPart(int[] rgnKeys, int nFind, int iExpected, bool fMatchExpected)
        {
            AzLogParts azlp = new AzLogParts();
            foreach (int n in rgnKeys)
                azlp.m_plazlp.Add(new DateTime(2000 + n, 1, 1), null);

            bool fMatched;
            int iResult = azlp.IazlpFindPart(new DateTime(2000 + nFind, 1, 1), out fMatched);
            Assert.AreEqual(iExpected, iResult);
            Assert.AreEqual(fMatchExpected, fMatched);
        }