Merge branch 'master'
[mono.git] / mcs / class / Microsoft.Build.Engine / Test / Microsoft.Build.BuildEngine / InternalLoggerExceptionTest.cs
index 2fce213d4d9fe034dca667111f00a2faab5f1df3..9aca5a68fd8a605d654fd623f36481acd161d209 100644 (file)
@@ -32,10 +32,12 @@ using NUnit.Framework;
 namespace MonoTests.Microsoft.Build.BuildEngine {
        [TestFixture]
        public class InternalLoggerExceptionTest {
+
+
+               // An InternalLoggerException can only be thrown by the MSBuild engine.
+               // The public constructors of this class cannot be used to create an instance of the exception.
                [Test]
-               [ExpectedException (typeof (System.InvalidOperationException),
-               "An InternalLoggerException can only be thrown by the MSBuild engine." +
-               " The public constructors of this class cannot be used to create an instance of the exception.")]
+               [ExpectedException (typeof (System.InvalidOperationException))]
                public void TestCtorMessage ()
                {
                        string message = "message";
@@ -43,10 +45,10 @@ namespace MonoTests.Microsoft.Build.BuildEngine {
                        new InternalLoggerException (message);
                }
                
+               // An InternalLoggerException can only be thrown by the MSBuild engine.
+               // The public constructors of this class cannot be used to create an instance of the exception.
                [Test]
-               [ExpectedException (typeof (System.InvalidOperationException),
-               "An InternalLoggerException can only be thrown by the MSBuild engine." +
-               " The public constructors of this class cannot be used to create an instance of the exception.")]
+               [ExpectedException (typeof (System.InvalidOperationException))]
                public void TestCtorMessageException ()
                {
                        string message = "message";