Beispiel #1
0
 public SlowLoadingElements(IClock clock, int timeOutInSeconds, TimeSpan sleepInterval,
                            FindElements elementFindingFunc)
     : base(TimeSpan.FromSeconds(timeOutInSeconds), clock)
 {
     this.elementFindingFunc = elementFindingFunc;
     SleepInterval           = sleepInterval;
 }
        public void Test(string inputStr, string inputStr2, string expectedStr)
        {
            var input    = BinaryTreeConvert.Deserialize(inputStr);
            var input2   = JsonConvert.DeserializeObject <int[]>(inputStr2);
            var expected = JsonConvert.DeserializeObject <bool[]>(expectedStr);
            var s        = new FindElements(input);

            for (var i = 0; i < input2.Length; i++)
            {
                s.Find(input2[i]).Should().Be(expected[i]);
            }
        }