~ubuntu-branches/debian/sid/nunit/sid

« back to all changes in this revision

Viewing changes to src/ClientUtilities/util/RecentFiles.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2014-09-16 13:43:36 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20140916134336-kjxz48tty6lx2ja5
Tags: 2.6.3+dfsg-1
* [c7bd1b5] Imported Upstream version 2.6.3+dfsg
* [bcb4bf8] Move nunit-console-runner to GAC-installed libnunit2.6, 
  don't treat it as a private lib. This lib is signed, and treated 
  as a GAC lib by consumers such as MonoDevelop.
* [7f08e99] Bump version to 2.6.3 as required
* [84535eb] Refreshed patches
* [8479f61] Split package up into per-assembly packages. This makes 
  ABI tracking easier in the future, as we can meaningfully have GAC 
  policy for cases where ABI isn't truly bumped, and no policy for 
  cases where it is. For example, if nunit.framework bumps ABI but 
  nunit.core does not, previously we would need to rebuild everything 
  using NUnit, but under the new split packaging, that rebuild would 
  not be needed for apps only using nunit.core.
* [17a7dc7] Add missing nunit.mocks.dll to nunit.pc

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// ****************************************************************
2
 
// Copyright 2007, Charlie Poole
3
 
// This is free software licensed under the NUnit license. You may
4
 
// obtain a copy of the license at http://nunit.org
5
 
// ****************************************************************
6
 
 
7
 
using System;
8
 
using System.Collections;
9
 
 
10
 
namespace NUnit.Util
11
 
{
12
 
        /// <summary>
13
 
        /// The RecentFiles interface is used to isolate the app
14
 
        /// from various implementations of recent files.
15
 
        /// </summary>
16
 
        public interface RecentFiles
17
 
        { 
18
 
                /// <summary>
19
 
                /// The max number of files saved
20
 
                /// </summary>
21
 
                int MaxFiles { get; set; }
22
 
 
23
 
                /// <summary>
24
 
                /// The current number of saved files
25
 
                /// </summary>
26
 
                int Count { get; }
27
 
 
28
 
                /// <summary>
29
 
                /// Get a list of all the file entries
30
 
                /// </summary>
31
 
                /// <returns>The most recent file list</returns>
32
 
                RecentFilesCollection Entries { get; }
33
 
 
34
 
                /// <summary>
35
 
                /// Set the most recent file entry, reordering
36
 
                /// the saved names as needed and removing the oldest
37
 
                /// if the max number of files would be exceeded.
38
 
                /// </summary>
39
 
                void SetMostRecent( RecentFileEntry entry );
40
 
 
41
 
                /// <summary>
42
 
                /// Set the most recent file name, reordering
43
 
                /// the saved names as needed and removing the oldest
44
 
                /// if the max number of files would be exceeded.
45
 
                /// The current CLR version is used to create the entry.
46
 
                /// </summary>
47
 
                void SetMostRecent( string fileName );
48
 
 
49
 
                /// <summary>
50
 
                /// Remove a file from the list
51
 
                /// </summary>
52
 
                /// <param name="fileName">The name of the file to remove</param>
53
 
                void Remove( string fileName );
54
 
        }
55
 
}
 
1
// ****************************************************************
 
2
// Copyright 2007, Charlie Poole
 
3
// This is free software licensed under the NUnit license. You may
 
4
// obtain a copy of the license at http://nunit.org
 
5
// ****************************************************************
 
6
 
 
7
using System;
 
8
using System.Collections;
 
9
 
 
10
namespace NUnit.Util
 
11
{
 
12
        /// <summary>
 
13
        /// The RecentFiles interface is used to isolate the app
 
14
        /// from various implementations of recent files.
 
15
        /// </summary>
 
16
        public interface RecentFiles
 
17
        { 
 
18
                /// <summary>
 
19
                /// The max number of files saved
 
20
                /// </summary>
 
21
                int MaxFiles { get; set; }
 
22
 
 
23
                /// <summary>
 
24
                /// The current number of saved files
 
25
                /// </summary>
 
26
                int Count { get; }
 
27
 
 
28
                /// <summary>
 
29
                /// Get a list of all the file entries
 
30
                /// </summary>
 
31
                /// <returns>The most recent file list</returns>
 
32
                RecentFilesCollection Entries { get; }
 
33
 
 
34
                /// <summary>
 
35
                /// Set the most recent file entry, reordering
 
36
                /// the saved names as needed and removing the oldest
 
37
                /// if the max number of files would be exceeded.
 
38
                /// </summary>
 
39
                void SetMostRecent( RecentFileEntry entry );
 
40
 
 
41
                /// <summary>
 
42
                /// Set the most recent file name, reordering
 
43
                /// the saved names as needed and removing the oldest
 
44
                /// if the max number of files would be exceeded.
 
45
                /// The current CLR version is used to create the entry.
 
46
                /// </summary>
 
47
                void SetMostRecent( string fileName );
 
48
 
 
49
                /// <summary>
 
50
                /// Remove a file from the list
 
51
                /// </summary>
 
52
                /// <param name="fileName">The name of the file to remove</param>
 
53
                void Remove( string fileName );
 
54
        }
 
55
}