public void BaseTest3() { TimeoutPolicy policy = new TimeoutPolicy(TimeSpan.Zero); Assert.False(policy.IsValid()); Assert.Null(policy.GetSync()); Assert.Null(policy.GetAsync()); }
public void BaseTest1() { TimeoutPolicy policy = new TimeoutPolicy(); Assert.False(policy.IsValid()); Assert.Null(policy.GetSync()); Assert.Null(policy.GetAsync()); Assert.Equal(5, policy.Index); }
public void BaseTest4() { TimeoutPolicy policy = new TimeoutPolicy(TimeSpan.FromMilliseconds(2000)); Assert.True(policy.IsValid()); Assert.NotNull(policy.GetSync()); Assert.NotNull(policy.GetAsync()); Assert.Equal(TimeSpan.FromMilliseconds(2000).TotalMilliseconds, policy.TimeSpan.TotalMilliseconds); }
public void BaseTest2() { TimeoutPolicy policy = new TimeoutPolicy(6); Assert.True(policy.IsValid()); Assert.NotNull(policy.GetSync()); Assert.NotNull(policy.GetAsync()); Assert.Equal(6, policy.Seconds); }