e46a49ecf1
Former-commit-id: d0813289fa2d35e1f8ed77530acb4fb1df441bc0
25 lines
678 B
C#
25 lines
678 B
C#
#if !MOBILE && !XAMMAC_4_5
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.Serialization;
|
|
using System.ServiceModel.Dispatcher;
|
|
using System.Xml;
|
|
using NUnit.Framework;
|
|
|
|
namespace MonoTests.System.ServiceModel.Dispatcher
|
|
{
|
|
[TestFixture]
|
|
public class InvalidBodyAccessExceptionTest
|
|
{
|
|
[Test]
|
|
public void TestConstructor ()
|
|
{
|
|
FilterInvalidBodyAccessException e = new FilterInvalidBodyAccessException ();
|
|
NavigatorInvalidBodyAccessException f = new NavigatorInvalidBodyAccessException ();
|
|
// Don't expect Engligh.
|
|
// Assert.AreEqual ("Not allowed to navigate to body.", e.Message);
|
|
Assert.AreEqual (e.Message, f.Message);
|
|
}
|
|
}
|
|
}
|
|
#endif |