public void ConvertDate_throws_on_unexpected_format__forward_slashes()
        {
            // arrange
            const string input = "2012/04/15";
            var factory = new YahooMarketDataFactory();

            // assert
            Assert.Throws<Exception>(() => factory.ConvertDate(input));
        }
        public void ConvertDate_correctly_converts_hyphenated_date()
        {
            // arrange
            const string input = "2011-04-15";
            var factory = new YahooMarketDataFactory();

            // act
            var date = factory.ConvertDate(input);

            // assert
            Assert.That(date.Year, Is.EqualTo(2011));
            Assert.That(date.Month, Is.EqualTo(4));
            Assert.That(date.Day, Is.EqualTo(15));
        }