mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 13:15:07 +00:00
Dict test
This commit is contained in:
@@ -156,8 +156,30 @@ namespace ICD.Common.Utils.Tests.Extensions
|
|||||||
[Test]
|
[Test]
|
||||||
public void UpdateTest()
|
public void UpdateTest()
|
||||||
{
|
{
|
||||||
Assert.Inconclusive();
|
Dictionary<int, int> a = new Dictionary<int, int>
|
||||||
}
|
{
|
||||||
|
{ 1, 10 },
|
||||||
|
{ 2, 10 },
|
||||||
|
};
|
||||||
|
|
||||||
|
Dictionary<int, int> b = new Dictionary<int, int>
|
||||||
|
{
|
||||||
|
{ 2, 20 },
|
||||||
|
{ 3, 30 }
|
||||||
|
};
|
||||||
|
|
||||||
|
a.Update(b);
|
||||||
|
|
||||||
|
Assert.AreEqual(3, a.Count);
|
||||||
|
Assert.AreEqual(10, a[1]);
|
||||||
|
Assert.AreEqual(20, a[2]);
|
||||||
|
Assert.AreEqual(30, a[3]);
|
||||||
|
|
||||||
|
Assert.AreEqual(2, b.Count);
|
||||||
|
Assert.AreEqual(20, b[2]);
|
||||||
|
Assert.AreEqual(30, b[3]);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void AddRangeValueKeyFuncTest()
|
public void AddRangeValueKeyFuncTest()
|
||||||
|
|||||||
Reference in New Issue
Block a user