|
using System.Collections.Generic;
using NUnit.Framework;
using DateTimeZone;
using VizTimeZone = DateTimeZone.TimeZone;
namespace TestDateTimeZone
{
/// <summary>
/// Class summary...
/// </summary>
[TestFixture]
public class TimeZonesTest
{
/// <summary>
/// A test sample method.
/// </summary>
[Test]
public void TestTimeZones()
{
IDictionary<string, VizTimeZone> timeZones = TimeZoneUtil.GetTimeZones(12, 45);
Assert.IsTrue(timeZones.Count > 0);
}
[Test]
public void TestMapAllTimeZones()
{
TimeZoneUtil.GetAllTimeZones();
VizTimeZone timeZone = TimeZoneUtil.GetAllTimeZones()["HST"];
Assert.AreSame(timeZone.CanonicalID, "HST");
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.