Esempio n. 1
0
        public void StructBuildTest()
        {
            var Structs         = _structDAG.GetAllSequences().ToList();
            var ExpectedStructs = _structData.ToList();

            Assert.AreEqual(ExpectedStructs.Count, Structs.Count);
            for (int i = 0; i < ExpectedStructs.Count; i++)
            {
                CollectionAssert.AreEquivalent(ExpectedStructs[i].ToList(), Structs[i]);
            }
        }
Esempio n. 2
0
        public void DateTimeBuildTest()
        {
            var DateTimes = _dateTimeDAG.GetAllSequences().ToList();
            var Expected  = _dateTimeData.ToList();

            Assert.AreEqual(Expected.Count, DateTimes.Count);
            for (int i = 0; i < Expected.Count; i++)
            {
                CollectionAssert.AreEquivalent(Expected[i].ToList(), DateTimes[i]);
            }
        }
Esempio n. 3
0
        public void CharBuildTest()
        {
            var Strings = _dawg.GetAllSequences().Select(x => string.Concat(x)).ToList();

            CollectionAssert.AreEquivalent(TestData.GetCharSequences(), Strings);
        }