|
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
namespace NinjaCross.Classes.Nunit.TestPerformance
{
public class NJC_TestPerformanceDescriptorList : List<NJC_TestPerformanceDescriptor>
{
public bool Contains(MethodInfo mi)
{
return GetItem(mi) == null ? false : true;
}
public bool Remove(MethodInfo method)
{
String methodFullName = NJC_TestPerformanceUtils.GetMethodFullName(method);
foreach (NJC_TestPerformanceDescriptor d in this)
{
if (methodFullName == d.TestMethodFullName)
return Remove(d);
}
return false;
}
public NJC_TestPerformanceDescriptor GetItem(MethodInfo method)
{
String methodFullName = NJC_TestPerformanceUtils.GetMethodFullName(method);
foreach (NJC_TestPerformanceDescriptor d in this)
{
if (methodFullName == d.TestMethodFullName)
return d;
}
return null;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I'm a senior developer in .NET, COM & Win32 and I work for an Italian company involved in e-learning and competency-analisys systems.
My work is also my main hobby, and I spend a lot of my spare time writing tutorials and codes for video games and multimedia-related arguments.