コード例 #1
0
 public void ThrowNotImplementedException()
 {
     using (var credentialCache = new CredentialCache())
     {
         Assert.Throws <NotImplementedException>(() => credentialCache.GetAllKeys());
         Assert.Throws <NotImplementedException>(() => credentialCache.GetCreatedAt(""));
         Assert.Throws <NotImplementedException>(() => credentialCache.InvalidateAll());
         Assert.Throws <NotImplementedException>(() => credentialCache.InvalidateAllObjects <object>());
         Assert.Throws <NotImplementedException>(() => credentialCache.Vacuum());
         Assert.Throws <NotImplementedException>(() => credentialCache.GetAllObjects <object>());
         Assert.Throws <NotImplementedException>(() => credentialCache.GetObjectCreatedAt <object>(""));
     }
 }
コード例 #2
0
 public void ThrowNotImplementedException()
 {
     using (var credentialCache = new CredentialCache())
     {
         Assert.Throws<NotImplementedException>(() => credentialCache.GetAllKeys());
         Assert.Throws<NotImplementedException>(() => credentialCache.GetCreatedAt(""));
         Assert.Throws<NotImplementedException>(() => credentialCache.InvalidateAll());
         Assert.Throws<NotImplementedException>(() => credentialCache.InvalidateAllObjects<object>());
         Assert.Throws<NotImplementedException>(() => credentialCache.Vacuum());
         Assert.Throws<NotImplementedException>(() => credentialCache.GetAllObjects<object>());
         Assert.Throws<NotImplementedException>(() => credentialCache.GetObjectCreatedAt<object>(""));
     }
 }