---
title: "Testing XML serialization attributes"
url: "https://osherove.com/blog/2008/4/24/testing-xml-serialization-attributes.md"
canonical: "https://osherove.com/blog/2008/4/24/testing-xml-serialization-attributes.html"
published: "2008-04-24T19:42:23"
updated: "2008-04-24T19:42:23"
tags: [".NET", "Agile Related", "Art Of Unit Testing", "Testing Guidelines", "Unit Testing"]
author: "Roy Osherove"
description: "Not sure how I feel about this particular brand of testing syntax . still, it's good that someone thought this problem through - testing xml serialization attributes. [via the morning brew ]"
usage: "Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page)."
license: "https://creativecommons.org/licenses/by/4.0/"
---

# Testing XML serialization attributes

By Roy Osherove April 24, 2008 In [.NET](https://osherove.com/blog/category/net), [Agile Related](https://osherove.com/blog/category/agile-related), [Art Of Unit Testing](https://osherove.com/blog/category/art-of-unit-testing), [Testing Guidelines](https://osherove.com/blog/category/testing-guidelines), [Unit Testing](https://osherove.com/blog/category/unit-testing)

**Historical article** · Originally published April 24, 2008; technical details may be outdated.

Not sure how I feel about [this particular brand of testing syntax](http://www.sharpregion.com/post/Give-back-to-your-testing-framework.aspx). still, it's good that someone thought this problem through - testing xml serialization attributes.

\[via [the morning brew](http://feeds.feedburner.com/~r/ReflectivePerspective/~3/276708890/)\]

## More in .NET

[All posts in .NET](https://osherove.com/blog/category/net)

- May 1, 2008

    ### [Please don't go (work for MS or Google)](https://osherove.com/blog/2008/5/1/please-dont-go-work-for-ms-or-google.html)

- Apr 29, 2008

    ### [Don't miss out on Spec#](https://osherove.com/blog/2008/4/29/dont-miss-out-on-spec.html)

- Apr 24, 2008

    ### [Parallel Builds with MSBuild](https://osherove.com/blog/2008/4/24/parallel-builds-with-msbuild.html)

- Feb 26, 2008

    ### [Fluent XML Library - Ultra cool, short and weet](https://osherove.com/blog/2008/2/26/fluent-xml-library-ultra-cool-short-and-weet.html)


---

## About the author

**Roy Osherove**: Senior Solutions Architect at AWS working on AI for production and AI-driven development; author of The Art of Unit Testing and Elastic Leadership, with about 20 years of consulting and training on unit testing, TDD, team leadership and continuous delivery.

### Sites

- [RobotPaper](https://robotpaper.ai/): This blog: AI patterns and anti-patterns, AI and coding agents, and engineering leadership.
- [osherove.com](https://osherove.com): Roy's personal site. Author of The Art of Unit Testing and Elastic Leadership; consulting and training on unit testing, TDD, team leadership and continuous delivery, plus about 20 years of blog posts.
- [The Art of Unit Testing](https://www.artofunittesting.com): The Art of Unit Testing, 3rd Edition (Manning): readable, maintainable, trustworthy unit tests, plus TDD workshops in C#, JavaScript, Java and Kotlin.
- [5whys.com](https://www.5whys.com): Roy's writing on software team leadership: self-organizing teams, surviving chaos, learning mode and the Elastic Leadership model.
- [Pipeline Driven](https://pipelinedriven.org): Continuous delivery and DevOps practices: build patterns, pipeline-friendly testing, DevOps metrics and enterprise DevOps.
- [Elastic Leadership](https://www.elasticleadership.com): Elastic Leadership, Roy's framework for software team leaders (survival, learning and self-organizing modes).

### Social

- X: https://x.com/royosherove
- LinkedIn: https://www.linkedin.com/in/osherove/

### Contact

- Contact form: https://forms.gle/jQSx5KoXvrVA1JCK7

### License

Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page). License: https://creativecommons.org/licenses/by/4.0/
