Lines Matching refs:Throws

78             AssertExtensions.Throws<ArgumentException>(null, () => new DirectoryEntry(adsObject));  in Ctor_InvalidAdsObject_ThrowsArgumentException()
105 Assert.Throws<ObjectDisposedException>(() => entry.Guid); in Dispose_GetProperties_ThrowsObjectDisposedException()
106 Assert.Throws<ObjectDisposedException>(() => entry.Name); in Dispose_GetProperties_ThrowsObjectDisposedException()
107 Assert.Throws<ObjectDisposedException>(() => entry.NativeGuid); in Dispose_GetProperties_ThrowsObjectDisposedException()
108 Assert.Throws<ObjectDisposedException>(() => entry.NativeObject); in Dispose_GetProperties_ThrowsObjectDisposedException()
109 Assert.Throws<ObjectDisposedException>(() => entry.ObjectSecurity); in Dispose_GetProperties_ThrowsObjectDisposedException()
110 Assert.Throws<ObjectDisposedException>(() => entry.Parent); in Dispose_GetProperties_ThrowsObjectDisposedException()
111 Assert.Throws<ObjectDisposedException>(() => entry.SchemaClassName); in Dispose_GetProperties_ThrowsObjectDisposedException()
112 Assert.Throws<ObjectDisposedException>(() => entry.SchemaEntry); in Dispose_GetProperties_ThrowsObjectDisposedException()
128 Assert.Throws<NullReferenceException>(() => entry.CopyTo(null)); in CopyTo_NullEntry_ThrowsNullReferenceException()
129 Assert.Throws<NullReferenceException>(() => entry.CopyTo(null, "newName")); in CopyTo_NullEntry_ThrowsNullReferenceException()
139 Assert.Throws<ObjectDisposedException>(() => entry.CopyTo(disposedEntry)); in CopyTo_DisposedEntry_ThrowsObjectDisposedException()
140 Assert.Throws<ObjectDisposedException>(() => entry.CopyTo(disposedEntry, "newName")); in CopyTo_DisposedEntry_ThrowsObjectDisposedException()
148 Assert.Throws<COMException>(() => entry.DeleteTree()); in DeleteTree_NoObject_ThrowsCOMException()
157 Assert.Throws<ObjectDisposedException>(() => entry.DeleteTree()); in DeleteTree_DisposedObject_ObjectDisposedException()
165 Assert.Throws<ObjectDisposedException>(() => entry.Invoke(null, null)); in Invoke_DisposedObject_ObjectDisposedException()
173 Assert.Throws<ObjectDisposedException>(() => entry.InvokeGet(null)); in InvokeGet_DisposedObject_ObjectDisposedException()
181 Assert.Throws<ObjectDisposedException>(() => entry.InvokeSet(null)); in InvokeSet_DisposedObject_ObjectDisposedException()
188 Assert.Throws<NullReferenceException>(() => entry.MoveTo(null)); in MoveTo_NullEntry_ThrowsNullReferenceException()
189 Assert.Throws<NullReferenceException>(() => entry.MoveTo(null, "newName")); in MoveTo_NullEntry_ThrowsNullReferenceException()
199 Assert.Throws<ObjectDisposedException>(() => entry.MoveTo(disposedEntry)); in MoveTo_DisposedEntry_ThrowsObjectDisposedException()
200 Assert.Throws<ObjectDisposedException>(() => entry.MoveTo(disposedEntry, "newName")); in MoveTo_DisposedEntry_ThrowsObjectDisposedException()
209 Assert.Throws<ObjectDisposedException>(() => entry.Rename(null)); in Rename_Disposed_ThrowsObjectDisposedException()
218 Assert.Throws<ObjectDisposedException>(() => entry.RefreshCache()); in RefreshCache_Disposed_ThrowsObjectDisposedException()
219 Assert.Throws<ObjectDisposedException>(() => entry.RefreshCache(null)); in RefreshCache_Disposed_ThrowsObjectDisposedException()
235 … AssertExtensions.Throws<ArgumentNullException>("value", () => entry.ObjectSecurity = null); in ObjectSecurity_SetNull_ThrowsArgumentnullExceptioN()