Hello there,
I am trying to run my unit tests using NCrunch,
however one of the project build is failing with following error -
Quote:'Class1' does not contain a definition for 'Property2'
'Class1' does not contain a definition for 'Property2' and no extension method 'Property2' accepting a first argument of type 'Class1' could be found (are you missing a using directive or an assembly reference?)
Class1 is defined as -
Code:
public class Class1
{
public List<SomeCustomObject11> Property1 { get; set; }
public List<SomeCustomObject22> Property2 { get; set; }
}
Quite surprisingly, no error is thrown for Property1.
Wondering why the error is thrown only for Property2,
Can anyone please guide what could be the issue?
Thank you!