예제 #1
0
        public void CreatesCorrectPolicy(string condition, int count, int intervalSeconds, bool firstFastRetry)
        {
            var basePolicy = new RetryPolicy(condition, count, TimeSpan.FromSeconds(intervalSeconds), firstFastRetry);
            var xml        = basePolicy.GetXml().ToString();

            xml.Should().Be($@"<retry condition=""{condition}"" count=""{count}"" interval=""{intervalSeconds}"" first-fast-retry=""{ (firstFastRetry ? "true" : "false") }"" />");
        }