Files
mono/mcs/class/System.ComponentModel.Composition/Tests/UnitTestFramework/System/UnitTesting/ExpectationCollectionOfI.cs
T
Miguel de Icaza e3f39fb13c Add MEF for .NET 4
svn path=/trunk/mcs/; revision=145695
2009-11-09 01:39:41 +00:00

31 lines
992 B
C#

// -----------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// -----------------------------------------------------------------------
using System;
using System.Collections.ObjectModel;
using System.Collections.Generic;
namespace System.UnitTesting
{
public class ExpectationCollection<TInputAndOutput> : Collection<Expectation<TInputAndOutput>>
{
public void Add(TInputAndOutput inputAndOutput)
{
Add(inputAndOutput, inputAndOutput);
}
public void AddRange(IEnumerable<TInputAndOutput> inputAndOutputs)
{
foreach (TInputAndOutput inputAndOutput in inputAndOutputs)
{
Add(inputAndOutput);
}
}
public void Add(TInputAndOutput input, TInputAndOutput output)
{
Add(new Expectation<TInputAndOutput>(input, output));
}
}
}