public void ShouldRefresh()
        {
            InstanceProfileCredentials instance = new InstanceProfileCredentials("a", "b", "c", DateTime.Now.ToString(), 100000);

            Assert.True(instance.ShouldRefresh());

            instance.SetLastFailedRefreshTime();

            Assert.False(instance.ShouldRefresh());
        }
Пример #2
0
        public void ShouldRefresh()
        {
            InstanceProfileCredentials instance = new InstanceProfileCredentials("a", "b", "c", DateTime.Now.ToString(), 100000);
            bool tmp = instance.ShouldRefresh();

            Assert.IsType <bool>(tmp);
        }
        public void ShouldRefresh()
        {
            var instance = new InstanceProfileCredentials("a", "b", "c", DateTime.Now.ToString(), 100000);

            Assert.True(instance.ShouldRefresh());
        }