using System;
using System.IO;
using NUnit.Framework;
using NAnt.Core.Tasks;
using Tests.NAnt.Core;
namespace Tests.NAnt.Cvs.Tasks {
///
/// Test that the checkout command brings down the master.build
/// file from the nant repository to the specified directory.
///
[TestFixture]
public class CheckoutTaskTest : BuildTestBase {
private const String _projectXML = @"
";
///
/// Test that the directory for the cvs checkout gets created and
/// that at least the master.build file comes down from the
/// repository.
///
[Test]
public void Test_CvsCheckout () {
const String TEST_FILE =
"c:/temp/cvscheckout-test/nant/NAnt.build";
String result = this.RunBuild (_projectXML);
Assertion.Assert ("File does not exist, checkout probably did not work.",
File.Exists (TEST_FILE));
}
///
/// Remove the directory created by the checkout/ update.
///
[TearDown]
protected override void TearDown () {
base.TearDown ();
//Directory.Delete ("c:/temp/cvscheckout-test", true);
}
}
}