public void ctor_SerializationInfo_StreamingContext()
        {
            var expected = new RepositoryTestException("test");
            RepositoryTestException actual;

            using (var stream = new MemoryStream())
            {
                var formatter = new BinaryFormatter();
                formatter.Serialize(stream, new RepositoryTestException("test"));
                stream.Position = 0;
                actual = (RepositoryTestException)formatter.Deserialize(stream);
            }

            Assert.Equal(expected.Message, actual.Message);
        }
        public void ctor_SerializationInfo_StreamingContext()
        {
            var expected = new RepositoryTestException("test");
            RepositoryTestException actual;

            using (var stream = new MemoryStream())
            {
                var formatter = new BinaryFormatter();
                formatter.Serialize(stream, new RepositoryTestException("test"));
                stream.Position = 0;
                actual          = (RepositoryTestException)formatter.Deserialize(stream);
            }

            Assert.Equal(expected.Message, actual.Message);
        }