using System;
using NUnit.Framework;
using System.Threading;
namespace grof{
/// <summary>
/// Description of TestMisc.
/// </summary>
[TestFixture]
public class TestMisc
{
public TestMisc()
{
}
[SetUp]
protected void SetUp()
{
}
[TearDown]
protected void TearDown()
{
}
[Test]
public void TestDateTime()
{
Console.WriteLine( "Time: " + DateTime.Now.ToString() );
Thread.Sleep( 3000 );
Console.WriteLine( "Time: " + DateTime.Now.ToString() );
}
[Test]
public void TestDateTimeDiff()
{
DateTime time1 = DateTime.Now;
Thread.Sleep( 3000 );
DateTime time2 = DateTime.Now;
TimeSpan timeDiff = time2 - time1;
Console.WriteLine( "TimeDiff: " + timeDiff );
}
}
}
|