Xamarin Public Jenkins (auto-signing) e46a49ecf1 Imported Upstream version 5.10.0.47
Former-commit-id: d0813289fa2d35e1f8ed77530acb4fb1df441bc0
2018-01-24 17:04:36 +00:00

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