Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
See what's new at GitLab
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
A
Anvoker.Maps
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
An Ionescu
Anvoker.Maps
Commits
d761a281
Commit
d761a281
authored
Dec 24, 2018
by
An Ionescu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Writing BiMap tests. Gonna run to Pitesti! Better push even if it sucks.
parent
1f710e2e
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
680 additions
and
1 deletion
+680
-1
src/Maps/Interfaces/IBiMap.cs
src/Maps/Interfaces/IBiMap.cs
+15
-1
src/Tests/Common/InterfaceTesters/IBiMapBase.cs
src/Tests/Common/InterfaceTesters/IBiMapBase.cs
+641
-0
src/Tests/Common/Tests.Common.csproj
src/Tests/Common/Tests.Common.csproj
+1
-0
src/Tests/Maps/ForwadingFixtures/ForwardingFixture_IBiMapNested.cs
.../Maps/ForwadingFixtures/ForwardingFixture_IBiMapNested.cs
+22
-0
src/Tests/Maps/Tests.Maps.csproj
src/Tests/Maps/Tests.Maps.csproj
+1
-0
No files found.
src/Maps/Interfaces/IBiMap.cs
View file @
d761a281
...
...
@@ -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
src/Tests/Common/InterfaceTesters/IBiMapBase.cs
0 → 100644
View file @
d761a281
This diff is collapsed.
Click to expand it.
src/Tests/Common/Tests.Common.csproj
View file @
d761a281
...
...
@@ -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"
/>
...
...
src/Tests/Maps/ForwadingFixtures/ForwardingFixture_IBiMapNested.cs
0 → 100644
View file @
d761a281
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
src/Tests/Maps/Tests.Maps.csproj
View file @
d761a281
...
...
@@ -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"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment