Test con Rhino Mocks

Tags: C#, RhinoMocks, Testing

public static class Extensions
{
	public static int CalculateHash(this List myList) where T : IEquatable
	{
	if (myList.Count == 0) return 0;
		unchecked
		{
			return myList.Aggregate(0, (current, v) => (current ^ 397)*v.GetHashCode());
		}
	}
}
Add a Comment