Commit d761a281 authored by An Ionescu's avatar An Ionescu

Writing BiMap tests. Gonna run to Pitesti! Better push even if it sucks.

parent 1f710e2e
......@@ -11,5 +11,19 @@ namespace Anvoker.Collections.Maps
public interface IBiMap<TKey, TVal> :
IDictionary<TKey, TVal>,
IFixedKeysBiMap<TKey, TVal>
{ }
{
new int Count { get; }
new IReadOnlyCollection<TKey> Keys { get; }
new IReadOnlyCollection<TVal> Values { get; }
new bool ContainsKey(TKey key);
new TVal this[TKey key] { get; set; }
new IEnumerator<KeyValuePair<TKey, TVal>> GetEnumerator();
new bool TryGetValue(TKey key, out TVal values);
}
}
\ No newline at end of file
This diff is collapsed.
......@@ -51,6 +51,7 @@
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="InterfaceTesters\IBiMapBase.cs" />
<Compile Include="Tracing.cs" />
<Compile Include="MapTestDataConstructible.cs" />
<Compile Include="InterfaceTesters\IRODictionaryNestedBase.cs" />
......
using System.Collections.Generic;
using Anvoker.Collections.Tests.Common;
using NUnit.Framework;
/*
namespace Anvoker.Collections.Tests.Maps.IReadOnlyDictionaryNested
{
[TestFixtureSource(
typeof(MultiBiMap.FixtureSource_IRODictionaryNested),
nameof(MultiBiMap.FixtureSource_IRODictionaryNested.GetArgs))]
[TestFixtureSource(
typeof(MultiMap.FixtureSource_IRODictionaryNested),
nameof(MultiMap.FixtureSource_IRODictionaryNested.GetArgs))]
public class ForwardingFixture<TKey, TVal, TIDict, TValCol>
: IRODictionaryNestedBase<TKey, TVal, TIDict, TValCol>
where TIDict : IReadOnlyDictionary<TKey, TValCol>
where TValCol : IEnumerable<TVal>
{
public ForwardingFixture(
MapTestDataConcrete<TKey, TVal, TIDict, TValCol> args) : base(args)
{ }
}
}*/
\ No newline at end of file
......@@ -50,6 +50,7 @@
</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Compile Include="ForwadingFixtures\ForwardingFixture_IBiMapNested.cs" />
<Compile Include="ForwadingFixtures\ForwardingFixture_IReadOnlyDictionaryNested.cs" />
<Compile Include="ForwadingFixtures\ForwardingFixture_IMultiBiMap.cs" />
<Compile Include="MapTestDataSourceValidator.cs" />
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment