// NAnt - A .NET build tool
// Copyright (C) 2003 Gerry Shaw
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// Tomas Restrepo (tomasr@mvps.org)
using System;
using System.IO;
using NUnit.Framework;
namespace NAnt.NUnit.Types {
///
/// Carries data specified through the formatter element.
///
[Serializable]
public class FormatterData {
#region Private Instance Fields
private string _extension;
private bool _usefile;
private FormatterType _formatterType = FormatterType.Plain;
private DirectoryInfo _outputDirectory;
#endregion Private Instance Fields
#region Public Instance Properties
///
/// Gets or sets the type of the formatter.
///
/// The type of the formatter.
public FormatterType Type {
get { return _formatterType; }
set { _formatterType = value; }
}
///
/// Gets or sets a value indicating whether output should be persisted
/// to a file.
///
///
/// if output should be written to a file; otherwise,
/// . The default is .
///
public bool UseFile {
get { return _usefile; }
set { _usefile = value; }
}
///
/// Gets or sets the extension to append to the output filename.
///
/// The extension to append to the output filename.
public string Extension {
get { return _extension; }
set { _extension = value; }
}
///
/// Gets or sets the directory where the output file should be written
/// to, if is .
///
///
/// The directory where the output file should be written to.
///
public DirectoryInfo OutputDirectory {
get { return _outputDirectory; }
set { _outputDirectory = value; }
}
#endregion Public Instance Properties
}
}