Esempio n. 1
0
        public void Test_Forexite_GetPossibleFormatObjectsSummer()
        {
            var forexite = new ForexiteSourceSpecification();

            IEnumerable <FormatObject> expected = new FormatObject[]
            {
                new FormatObject("Forexite", new DateTime(2002, 6, 3, 0, 0, 0))
            };

            var actual = forexite.GetPossibleFormatObjects(new DateTimeOffset(2002, 6, 2, 22, 0, 0, TimeSpan.Zero));

            Assert.IsTrue(expected.SequenceEqual(actual));
        }
Esempio n. 2
0
        public void Test_Forexite_GetNextPossibleFormatObjects()
        {
            var forexite = new ForexiteSourceSpecification();

            FormatObject formatObject = new FormatObject("Forexite", new DateTime(2001, 1, 3));

            IEnumerable <FormatObject> expected = new FormatObject[]
            {
                new FormatObject("Forexite", new DateTime(2001, 1, 4))
            };

            var actual = forexite.GetNextPossibleFormatObjects(formatObject);

            Assert.IsTrue(expected.SequenceEqual(actual));
        }