asiftasleem / nbuilder

Automatically exported from code.google.com/p/nbuilder
0 stars 0 forks source link

Abstract classes #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
NBuilder incorrectly reports that it can't create an instance of an
abstract class because the class requires constructor args, not because the
class is abstract.

e.g.

public abstract class MyClass
{

}

Builder<MyClass>.CreateNew().Build()

This would throw an exception saying that it could not instantiate the
class because it requires constructor args. It should tell say 'Cannot
build an abstract class'.

Original issue reported on code.google.com by garethdo...@googlemail.com on 17 Jun 2009 at 2:11

GoogleCodeExporter commented 8 years ago

Original comment by garethdo...@googlemail.com on 23 Sep 2009 at 9:57