public void NoSuchLanguageExceptionShouldBeSerializable()
        {
            var exception = new NoSuchLanguageException("sample message", new Location(1, 2));

            var deserializedException = SerializeDeserialize(exception);

            AssertMessageAndLocation(exception, deserializedException);
        }
        public void NoSuchLanguageExceptionWithNoLocationShouldBeSerializable()
        {
            var exception = new NoSuchLanguageException("sample message");

            var deserializedException = SerializeDeserialize(exception);

            Assert.AreEqual(exception.Message, deserializedException.Message);
            Assert.IsNull(deserializedException.Location);
        }