Not comparing a specific property of child class

Apr 13, 2012 at 5:07 AM

Class firstClass

{

public string statusId{get; set;}

public string Name{get; set;}

public ICollection <secondClass> collectionOfSecondClass {get; set;}

}

Class secondClass

{

public string Id{get; set;}

public firstClass firstClassInstance {get; set;}

}

When I try to compare two Objects of classA, the firstClassInstance(property of secondClass) property of the child class is not compared.

 

Coordinator
Apr 17, 2012 at 11:41 AM

Please create an NUnit test to reproduce the issue.