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:
authorMarcos Henrich <marcos.henrich@xamarin.com>2016-08-01 12:27:37 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2016-10-29 15:09:33 +0300
commit863dc73d1984175cb52734e1cb755c9d57de53bd (patch)
tree064bd05b59629fd58d317b6853334de013607b4e /mcs/class/System/Test
parent01c9543e084d1196a051c4a980b255b0f8b399d5 (diff)
[bcl] Add NUnitHelper.cs with API not in nunit-lite
NUnitHelper.cs adds CollectionAssert, FileAssert, StringAssert. Also adds AssertHelper class with methods that are not part of nunitlite Assert class.
Diffstat (limited to 'mcs/class/System/Test')
-rw-r--r--mcs/class/System/Test/System.CodeDom.Compiler/CodeGeneratorGenerateFromCompileUnitTest.cs2
-rw-r--r--mcs/class/System/Test/System.Collections.Generic/SortedListTest.cs3
-rw-r--r--mcs/class/System/Test/System.Diagnostics/SourceSwitchTest.cs2
-rw-r--r--mcs/class/System/Test/System.Diagnostics/SwitchesTest.cs4
4 files changed, 4 insertions, 7 deletions
diff --git a/mcs/class/System/Test/System.CodeDom.Compiler/CodeGeneratorGenerateFromCompileUnitTest.cs b/mcs/class/System/Test/System.CodeDom.Compiler/CodeGeneratorGenerateFromCompileUnitTest.cs
index c6ccdf0a26a..823204cf486 100644
--- a/mcs/class/System/Test/System.CodeDom.Compiler/CodeGeneratorGenerateFromCompileUnitTest.cs
+++ b/mcs/class/System/Test/System.CodeDom.Compiler/CodeGeneratorGenerateFromCompileUnitTest.cs
@@ -53,7 +53,7 @@ namespace MonoTests.System.CodeDom.Compiler
int importPosition = result.IndexOf (IMPORT);
int attributePosition = result.IndexOf (ATTRIBUTE);
- Assert.Greater (attributePosition, importPosition, "Actual order: " + result);
+ AssertHelper.Greater (attributePosition, importPosition, "Actual order: " + result);
}
[Test]
diff --git a/mcs/class/System/Test/System.Collections.Generic/SortedListTest.cs b/mcs/class/System/Test/System.Collections.Generic/SortedListTest.cs
index b6baac08e85..6586c4c092f 100644
--- a/mcs/class/System/Test/System.Collections.Generic/SortedListTest.cs
+++ b/mcs/class/System/Test/System.Collections.Generic/SortedListTest.cs
@@ -38,9 +38,6 @@ using System.Text;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;
using NUnit.Framework;
-#if !MOBILE
-using NUnit.Framework.SyntaxHelpers;
-#endif
namespace MonoTests.System.Collections.Generic
{
diff --git a/mcs/class/System/Test/System.Diagnostics/SourceSwitchTest.cs b/mcs/class/System/Test/System.Diagnostics/SourceSwitchTest.cs
index 820e84d2a89..07195bb9246 100644
--- a/mcs/class/System/Test/System.Diagnostics/SourceSwitchTest.cs
+++ b/mcs/class/System/Test/System.Diagnostics/SourceSwitchTest.cs
@@ -53,7 +53,7 @@ namespace MonoTests.System.Diagnostics
public void ConstructorNullName ()
{
SourceSwitch s = new SourceSwitch (null);
- Assert.IsEmpty (s.DisplayName);
+ AssertHelper.IsEmpty (s.DisplayName);
}
[Test]
diff --git a/mcs/class/System/Test/System.Diagnostics/SwitchesTest.cs b/mcs/class/System/Test/System.Diagnostics/SwitchesTest.cs
index 9d97fc8b53c..d8821a00c2d 100644
--- a/mcs/class/System/Test/System.Diagnostics/SwitchesTest.cs
+++ b/mcs/class/System/Test/System.Diagnostics/SwitchesTest.cs
@@ -190,8 +190,8 @@ namespace MonoTests.System.Diagnostics {
public void NullSwitchHasEmptyDisplayNameAndDescription ()
{
var s = new TestNullSwitch ();
- Assert.IsEmpty (s.DisplayName);
- Assert.IsEmpty (s.Description);
+ AssertHelper.IsEmpty (s.DisplayName);
+ AssertHelper.IsEmpty (s.Description);
}
}
}