Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

23 lines
644 B
C#

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);
}
}
}