public void Delete_UsingDelete_ExceedBagLimit()
{
var exceptionThrown = false;
ConfigureTrash(10, 10, 2, true);
EnsureNode("[TestRoot]/Folder/Sample1");
EnsureNode("[TestRoot]/Folder/Sample2");
try
{
DeleteWithDelete("[TestRoot]/Folder");
}
catch (ApplicationException)
{
exceptionThrown = true;
}
Assert.IsTrue(exceptionThrown, "ApplicationException exception should be thrown.");
CheckNumberOfItemsInTrash(0);
}