Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Köplinger <alex.koeplinger@outlook.com>2017-07-05 18:54:47 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2017-07-07 17:17:56 +0300
commit167d1a6c195dec75dfaa647410b702e5d0ca0b8f (patch)
treedf0728552fec175846d77a2acb640462c7da3d63 /mcs/class/test-helpers
parent4de15018317be1b7642e654acca788e750dedd29 (diff)
[corlib] Add test for deleting non-existing file
It shouldn't throw in that case. Helps cover https://bugzilla.xamarin.com/show_bug.cgi?id=57629 (note that we don't explicitly test on a readonly FS as that is hard to do in a unit test, but running this test on Android should suffice).
Diffstat (limited to 'mcs/class/test-helpers')
-rw-r--r--mcs/class/test-helpers/NunitHelpers.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/mcs/class/test-helpers/NunitHelpers.cs b/mcs/class/test-helpers/NunitHelpers.cs
index 5bc3211f89a..20ea722a155 100644
--- a/mcs/class/test-helpers/NunitHelpers.cs
+++ b/mcs/class/test-helpers/NunitHelpers.cs
@@ -30,6 +30,11 @@ namespace NUnit.Framework
{
Assert.That(collection, new EmptyCollectionConstraint(), message, args);
}
+
+ public static void IsNotEmpty(IEnumerable collection, string message = null, params object[] args)
+ {
+ Assert.That(collection, Is.Not.Empty, message, args);
+ }
}
static class FileAssert