﻿using System;
using NetChris.Money.Exchange;
using Xunit;

namespace NetChris.Money.Tests.Exchange
{
    public class DateTimeUtcNowProviderTests
    {
        [Fact]
        public void Basic_function()
        {
            DateTimeUtcNowProvider provider = new DateTimeUtcNowProvider();
            DateTime start = DateTime.UtcNow;
            DateTime test = provider.Now;
            DateTime end = DateTime.UtcNow;

            Assert.True(test >= start && test <= end);
        }
    }
}
