Exemple #1
0
        public void SerializableTest()
        {
            var request = new HttpRequest(new Uri("http://localhost"), new Dictionary <string, string> {
                { "hello", "tyria" }
            });
            var response = new HttpResponse <ErrorObject>(new ErrorObject {
                Text = "Error"
            }, HttpStatusCode.NotFound, null, null);
            var exception = new NotFoundException(request, response);

            exception.Should().BeBinarySerializable();
        }