コード例 #1
0
        /// <summary>
        ///     Verify that the count of entries that is expected is found in
        ///         the entries file.  If not then throw an assertion exception.
        /// </summary>
        /// <param name="path">The path to check for the entries in.</param>
        /// <param name="fileType">The type of file that is being checked.</param>
        /// <param name="entriesExpected">The number of entries expected.</param>
        private void verifyEntryCount(String path,
                                      Factory.FileType fileType,
                                      int entriesExpected)
        {
            Manager manager = new Manager(path);

            ICvsFile[] currentEntries =
                manager.Fetch(path, fileType);
            LOGGER.Error("path=[" + path + "]");
            int entriesFound = currentEntries.Length;

            Assert.AreEqual(entriesExpected, entriesFound);
        }
コード例 #2
0
ファイル: StrategyContext.cs プロジェクト: MarsonShine/Books
 public StrategyContext(Factory.FileType fileType)
 {
 }