mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 17:10:20 -10:00
31 lines
992 B
C#
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));
|
|
}
|
|
}
|
|
}
|