diff options
author | Marcos Henrich <marcos.henrich@xamarin.com> | 2016-08-01 12:27:37 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2016-10-29 15:09:33 +0300 |
commit | 863dc73d1984175cb52734e1cb755c9d57de53bd (patch) | |
tree | 064bd05b59629fd58d317b6853334de013607b4e /mcs/class/monodoc | |
parent | 01c9543e084d1196a051c4a980b255b0f8b399d5 (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/monodoc')
4 files changed, 5 insertions, 4 deletions
diff --git a/mcs/class/monodoc/Test/Monodoc.Generators/RawGeneratorTests.cs b/mcs/class/monodoc/Test/Monodoc.Generators/RawGeneratorTests.cs index 9af81920a16..fa3ffe15ac5 100644 --- a/mcs/class/monodoc/Test/Monodoc.Generators/RawGeneratorTests.cs +++ b/mcs/class/monodoc/Test/Monodoc.Generators/RawGeneratorTests.cs @@ -47,7 +47,7 @@ namespace MonoTests.Monodoc.Generators { var xml = rootTree.RenderUrl ("T:System.String", generator); Assert.IsNotNull (xml); - Assert.IsNotEmpty (xml); + AssertHelper.IsNotEmpty (xml); AssertValidXml (xml); AssertEcmaFullTypeName (xml, "System.String"); } @@ -57,7 +57,7 @@ namespace MonoTests.Monodoc.Generators { var xml = rootTree.RenderUrl ("T:System.Int32", generator); Assert.IsNotNull (xml); - Assert.IsNotEmpty (xml); + AssertHelper.IsNotEmpty (xml); AssertValidXml (xml); AssertEcmaFullTypeName (xml, "System.Int32"); } diff --git a/mcs/class/monodoc/Test/Monodoc/HelpSourceTests.cs b/mcs/class/monodoc/Test/Monodoc/HelpSourceTests.cs index 867c9b79389..29da7513704 100644 --- a/mcs/class/monodoc/Test/Monodoc/HelpSourceTests.cs +++ b/mcs/class/monodoc/Test/Monodoc/HelpSourceTests.cs @@ -85,7 +85,7 @@ namespace MonoTests.Monodoc // HACK: in reality we have currently 4 known issues which are due to duplicated namespaces across // doc sources, something that was never supported and that we need to improve/fix at some stage - Assert.LessOrEqual (4, errorCount, errorCount + " / " + testCount.ToString ()); + AssertHelper.LessOrEqual (4, errorCount, errorCount + " / " + testCount.ToString ()); } IEnumerable<Node> GetLeaves (Node node) diff --git a/mcs/class/monodoc/Test/Monodoc/SettingsTest.cs b/mcs/class/monodoc/Test/Monodoc/SettingsTest.cs index 29ac108da8d..fc6bf8da18a 100644 --- a/mcs/class/monodoc/Test/Monodoc/SettingsTest.cs +++ b/mcs/class/monodoc/Test/Monodoc/SettingsTest.cs @@ -17,7 +17,7 @@ namespace MonoTests.Monodoc { // the docPath variable is the only one we know for sure should exist Assert.IsNotNull (Config.Get ("docPath")); - Assert.IsNotEmpty (Config.Get ("docPath")); + AssertHelper.IsNotEmpty (Config.Get ("docPath")); } } } diff --git a/mcs/class/monodoc/monodoc_test.dll.sources b/mcs/class/monodoc/monodoc_test.dll.sources index b806b8fb6e9..a3f19b731a0 100644 --- a/mcs/class/monodoc/monodoc_test.dll.sources +++ b/mcs/class/monodoc/monodoc_test.dll.sources @@ -1,3 +1,4 @@ +../../test-helpers/NunitHelpers.cs Monodoc/HelpSourceTests.cs Monodoc/EcmaDocTests.cs Monodoc/TreeTest.cs |