Exemple #1
0
 private List <int[]> GetSequences(bool withFeedBackLoop)
 {
     if (withFeedBackLoop)
     {
         return(PhaseSequenceGenerator.Generate(new int[] { 9, 8, 7, 6, 5 }));
     }
     return(PhaseSequenceGenerator.Generate(new int[] { 0, 1, 2, 3, 4 }));
 }
Exemple #2
0
        public void OnePhaseInSequence()
        {
            var expected = new List <int[]> {
                new int[] { 1 }
            };
            var actual = PhaseSequenceGenerator.Generate(new int[] { 1 });

            Assert.AreEqual(expected, actual);
        }
Exemple #3
0
        public void TwoPhasesInSequence()
        {
            var expected = new List <int[]>
            {
                new int[] { 1, 2 },
                new int[] { 2, 1 }
            };
            var actual = PhaseSequenceGenerator.Generate(new int[] { 1, 2 });

            Assert.AreEqual(expected, actual);
        }