> 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 anyone can tell me how using FNH will provide more validation than
that,
> I'll start using it now :-)
> 
> Moreover, why do some people think that this:
>   Property(x => x.TheData).Column("the_data"); is "safer" or "more static"
> (?) than:
>   <property name="TheData" column="the_data"/> ...considering the former
> just produces the latter?

        <property name="Thedata" column="the_data"/>

        is wrong but barfs at runtime

        Property(x => x.Thedata).Column("the_data");

        is wrong but barfs at compile time. 

        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...

        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.

                FB

> 
> That was my point all along.
> 
>     Diego
> 
> 
> 
> On Mon, Aug 16, 2010 at 16:35, Frans Bouma <[email protected]> wrote:
> 
> 
>              something to think about: when MS shipped linq to sql, they
> had over
>       a million (!) unit tests for it. Still there were bugs in it.
I.o.w.:
> if you
>       think that a couple of thousand tests will save your *** because if
> you make
>       a mistake they'll notify you, you're naïve ;)
> 
> 
> 
> --
> 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.


-- 
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.

Reply via email to