mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 03:57:32 +00:00
Tidying
This commit is contained in:
parent
282d8e4d0e
commit
a3bf92840e
1 changed files with 7 additions and 7 deletions
|
|
@ -16,7 +16,7 @@ namespace ICD.Common.Utils.Tests.Extensions
|
||||||
{1, 10},
|
{1, 10},
|
||||||
{2, 20},
|
{2, 20},
|
||||||
{3, 30},
|
{3, 30},
|
||||||
{4, 40},
|
{4, 40}
|
||||||
};
|
};
|
||||||
|
|
||||||
Assert.IsTrue(dict.RemoveValue(10));
|
Assert.IsTrue(dict.RemoveValue(10));
|
||||||
|
|
@ -34,7 +34,7 @@ namespace ICD.Common.Utils.Tests.Extensions
|
||||||
{1, 10},
|
{1, 10},
|
||||||
{2, 10},
|
{2, 10},
|
||||||
{3, 30},
|
{3, 30},
|
||||||
{4, 40},
|
{4, 40}
|
||||||
};
|
};
|
||||||
|
|
||||||
dict.RemoveAllValues(10);
|
dict.RemoveAllValues(10);
|
||||||
|
|
@ -52,7 +52,7 @@ namespace ICD.Common.Utils.Tests.Extensions
|
||||||
{1, 10},
|
{1, 10},
|
||||||
{2, 10},
|
{2, 10},
|
||||||
{3, 30},
|
{3, 30},
|
||||||
{4, 40},
|
{4, 40}
|
||||||
};
|
};
|
||||||
|
|
||||||
Assert.AreEqual(10, dict.GetDefault(1));
|
Assert.AreEqual(10, dict.GetDefault(1));
|
||||||
|
|
@ -67,7 +67,7 @@ namespace ICD.Common.Utils.Tests.Extensions
|
||||||
{1, 10},
|
{1, 10},
|
||||||
{2, 10},
|
{2, 10},
|
||||||
{3, 30},
|
{3, 30},
|
||||||
{4, 40},
|
{4, 40}
|
||||||
};
|
};
|
||||||
|
|
||||||
Assert.AreEqual(10, dict.GetDefault(1, 1000));
|
Assert.AreEqual(10, dict.GetDefault(1, 1000));
|
||||||
|
|
@ -82,7 +82,7 @@ namespace ICD.Common.Utils.Tests.Extensions
|
||||||
{1, 10},
|
{1, 10},
|
||||||
{2, 10},
|
{2, 10},
|
||||||
{3, 30},
|
{3, 30},
|
||||||
{4, 40},
|
{4, 40}
|
||||||
};
|
};
|
||||||
|
|
||||||
Assert.AreEqual(10, dict.GetOrAddDefault(1, 1000));
|
Assert.AreEqual(10, dict.GetOrAddDefault(1, 1000));
|
||||||
|
|
@ -159,7 +159,7 @@ namespace ICD.Common.Utils.Tests.Extensions
|
||||||
Dictionary<int, int> a = new Dictionary<int, int>
|
Dictionary<int, int> a = new Dictionary<int, int>
|
||||||
{
|
{
|
||||||
{1, 10},
|
{1, 10},
|
||||||
{2, 10},
|
{2, 10}
|
||||||
};
|
};
|
||||||
|
|
||||||
Dictionary<int, int> b = new Dictionary<int, int>
|
Dictionary<int, int> b = new Dictionary<int, int>
|
||||||
|
|
@ -291,7 +291,7 @@ namespace ICD.Common.Utils.Tests.Extensions
|
||||||
{
|
{
|
||||||
{1, 10},
|
{1, 10},
|
||||||
{2, 20},
|
{2, 20},
|
||||||
{3, 30},
|
{3, 30}
|
||||||
};
|
};
|
||||||
|
|
||||||
int[] ordered = a.OrderValuesByKey().ToArray();
|
int[] ordered = a.OrderValuesByKey().ToArray();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue