On Tue, Aug 17, 2010 at 04:02, Frans Bouma <[email protected]> wrote: > > Since there seems to be some confusion, this is the main test I was > > referring to: > > > > [Fact] > > public void ConfigurationIsValid() > > { > > //call the method that creates the configuration and builds the > session > > factory } > > useless. Even if this test succeeds, you have no idea if your xml > is > valid or not. >
If NH compiles it, it's valid. That's the only purpose of this test. It can check well-formedness, schema, structure, names and semantic. ...Which is something FNH won't do by itself, and that was the whole point. > Both are results of work done by a human which can be better done by > a machine, but heck, some people like the idea of doing work a machine > could > do better... > The machine is xunit. Why would that be better that csc? > > What I don't understand is that you find the 'run the tests to see > if what I wrote is correct' is a valuable approach: it takes time, and if > you screwed up during test writing, you're not going to be happy at > runtime. > Time? It's one click away. Just like the C# compiler. Diego -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
