November 2006 Entries
Simon Bisson makes a pilgrimage to the first EVER web server at CERN at The Little Workstation That Did.
I like using the C# using keyword. It's great in dealing with connections and transactions, disposing of resources as we go, keeping an app lean and mean, so to speak. So maybe it's not surprising that I figured out maybe I should do the same in my little app. So here's the suggestion.
static void Main(string[] args)
{
XmlSchema schema;
CodeNamespace codeNamespace;
//Load schema into memory
using (SchemaLoader loader = new SchemaLoader())
{
schema = loader.LoadSchemaFromFile(args[0]);
}
//Convert schema into namespace
using (SchemaToNamespaceConverter converter = new SchemaToNamespaceConverter())
{
...
Strangeness. Carrying on at a leisurely pace with my XSD-entender TDD project, I come across a couple of issues. The first is yet another inconsistency inside the XmlSerializer although not a bug. It's a case of obsolescence. In .NET 1.0, you compile an XmlSchema object like this.
XmlSchema xsd = new XmlSchema();
xsd.Compile();
Found a great post on blogs.msdn which ties in neatly with some of the stuff that Roy Osherove is writing in his Unit Testing book. Realising that a unit test is not always a unit test can be quite important. Knowing what it is helps too.
Here's a quick list of some of the different kinds of tests. It's not a complete list, but it should cover a lot of common terms you'll often see tossed around at work or in the literature. As you can see, there can be some overlap between the terms: for example, you may have a developer test...