@ -25,67 +25,75 @@ namespace ICSharpCode.Profiler.Controller.Data
this . unitTests = new List < CallTreeNode > ( unitTests ) ;
this . unitTests = new List < CallTreeNode > ( unitTests ) ;
}
}
/// <summary>
/// <inheritdoc/>
/// Gets a reference to the name, return type and parameter list of the method.
/// </summary>
public override NameMapping NameMapping {
public override NameMapping NameMapping {
get {
get {
return new NameMapping ( 0 , null , "Merged node" , null ) ;
return new NameMapping ( 0 , null , "Merged node" , null ) ;
}
}
}
}
/// <inheritdoc/>
public override long CpuCyclesSpent {
public override long CpuCyclesSpent {
get {
get {
return 0 ;
return 0 ;
}
}
}
}
/// <inheritdoc/>
public override bool IsActiveAtStart {
public override bool IsActiveAtStart {
get {
get {
return this . unitTests . Any ( test = > test . IsActiveAtStart ) ;
return this . unitTests . Any ( test = > test . IsActiveAtStart ) ;
}
}
}
}
/// <inheritdoc/>
public override double TimeSpent {
public override double TimeSpent {
get {
get {
return 0 ;
return 0 ;
}
}
}
}
/// <inheritdoc/>
public override int RawCallCount {
public override int RawCallCount {
get {
get {
return 0 ;
return 0 ;
}
}
}
}
/// <inheritdoc/>
public override CallTreeNode Parent {
public override CallTreeNode Parent {
get {
get {
return null ;
return null ;
}
}
}
}
/// <inheritdoc/>
public override CallTreeNode Merge ( System . Collections . Generic . IEnumerable < CallTreeNode > nodes )
public override CallTreeNode Merge ( System . Collections . Generic . IEnumerable < CallTreeNode > nodes )
{
{
// throw new ShouldNeverHappenException();
// throw new ShouldNeverHappenException();
throw new NotSupportedException ( "Cannot merge a UnitTestRootCallTreeNode (should never be possible)" ) ;
throw new NotSupportedException ( "Cannot merge a UnitTestRootCallTreeNode (should never be possible)" ) ;
}
}
/// <inheritdoc/>
public override int GetHashCode ( )
public override int GetHashCode ( )
{
{
return this . unitTests . Aggregate ( 0 , ( sum , item ) = > sum ^ = item . GetHashCode ( ) ) ;
return this . unitTests . Aggregate ( 0 , ( sum , item ) = > sum ^ = item . GetHashCode ( ) ) ;
}
}
/// <inheritdoc/>
public override bool Equals ( CallTreeNode other )
public override bool Equals ( CallTreeNode other )
{
{
return ( other is UnitTestRootCallTreeNode ) & & ( other as UnitTestRootCallTreeNode ) . unitTests . SequenceEqual ( unitTests ) ;
return ( other is UnitTestRootCallTreeNode ) & & ( other as UnitTestRootCallTreeNode ) . unitTests . SequenceEqual ( unitTests ) ;
}
}
/// <inheritdoc/>
public override IQueryable < CallTreeNode > Callers {
public override IQueryable < CallTreeNode > Callers {
get {
get {
return Enumerable . Empty < CallTreeNode > ( ) . AsQueryable ( ) ;
return Enumerable . Empty < CallTreeNode > ( ) . AsQueryable ( ) ;
}
}
}
}
/// <inheritdoc/>
public override IQueryable < CallTreeNode > Children {
public override IQueryable < CallTreeNode > Children {
get {
get {
return unitTests . AsQueryable ( ) ;
return unitTests . AsQueryable ( ) ;