< Summary

Information
Class: MyNet.Utilities.Tests.Collections.ObservableKeyedCollectionTests
Assembly: MyNet.Utilities.Tests
File(s): D:\a\MyNet\MyNet\tests\MyNet.Utilities.Tests\Collections\ObservableKeyedCollectionTests.cs
Tag: 231_20410175562
Line coverage
99%
Covered lines: 179
Uncovered lines: 1
Coverable lines: 180
Total lines: 423
Line coverage: 99.4%
Branch coverage
83%
Covered branches: 5
Total branches: 6
Branch coverage: 83.3%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
Indexer_WithExistingKey_ShouldReturnItem()100%11100%
Indexer_WithNonExistingKey_ShouldReturnNull()100%11100%
Contains_WithExistingKey_ShouldReturnTrue()100%11100%
Contains_WithNonExistingKey_ShouldReturnFalse()100%11100%
TryAdd_WithNewKey_ShouldAddAndReturnTrue()100%11100%
TryAdd_WithExistingKey_ShouldReturnFalse()100%11100%
Remove_ByKey_WithExistingKey_ShouldRemoveAndReturnTrue()100%11100%
Remove_ByKey_WithNonExistingKey_ShouldReturnFalse()100%11100%
TryGetValue_WithExistingKey_ShouldReturnTrueAndValue()100%11100%
TryGetValue_WithNonExistingKey_ShouldReturnFalse()100%11100%
DictionaryCreation_ShouldOccurAtThreshold()100%22100%
CreateDictionaryNow_ShouldForceCreation()100%11100%
Indexer_BeforeDictionaryCreated_ShouldStillWork()100%11100%
Remove_AfterDictionaryCreated_ShouldUseDictionary()100%11100%
SetItem_ShouldUpdateDictionary()100%11100%
Clear_ShouldClearDictionary()100%11100%
GetDictionaryStats_ShouldReturnCorrectInfo()100%11100%
ThreadSafety_ConcurrentAccess_ShouldWork()100%11100%
DuplicateKeys_ShouldHandleGracefully()100%11100%
NullKey_ShouldBeHandled()100%11100%
ChangeItemKey_ShouldUpdateDictionary()100%11100%
Sort_WithKeys_ShouldMaintainDictionary()100%22100%
get_Key()100%11100%
set_Key(...)100%11100%
get_Value()100%11100%
set_Value(...)100%11100%
.ctor()100%11100%
.ctor(...)100%11100%
.ctor(...)100%11100%
GetKeyForItem(...)100%11100%
ChangeItemKeyPublic(...)100%210%
ChangeItemKeyPublic(...)100%11100%
get_IsDictionaryCreatedPublic()100%11100%
CreateDictionaryNowPublic()100%11100%
GetDictionaryStatsPublic()100%11100%

File(s)

D:\a\MyNet\MyNet\tests\MyNet.Utilities.Tests\Collections\ObservableKeyedCollectionTests.cs

File 'D:\a\MyNet\MyNet\tests\MyNet.Utilities.Tests\Collections\ObservableKeyedCollectionTests.cs' does not exist (any more).

Methods/Properties

Indexer_WithExistingKey_ShouldReturnItem()
Indexer_WithNonExistingKey_ShouldReturnNull()
Contains_WithExistingKey_ShouldReturnTrue()
Contains_WithNonExistingKey_ShouldReturnFalse()
TryAdd_WithNewKey_ShouldAddAndReturnTrue()
TryAdd_WithExistingKey_ShouldReturnFalse()
Remove_ByKey_WithExistingKey_ShouldRemoveAndReturnTrue()
Remove_ByKey_WithNonExistingKey_ShouldReturnFalse()
TryGetValue_WithExistingKey_ShouldReturnTrueAndValue()
TryGetValue_WithNonExistingKey_ShouldReturnFalse()
DictionaryCreation_ShouldOccurAtThreshold()
CreateDictionaryNow_ShouldForceCreation()
Indexer_BeforeDictionaryCreated_ShouldStillWork()
Remove_AfterDictionaryCreated_ShouldUseDictionary()
SetItem_ShouldUpdateDictionary()
Clear_ShouldClearDictionary()
GetDictionaryStats_ShouldReturnCorrectInfo()
ThreadSafety_ConcurrentAccess_ShouldWork()
DuplicateKeys_ShouldHandleGracefully()
NullKey_ShouldBeHandled()
ChangeItemKey_ShouldUpdateDictionary()
Sort_WithKeys_ShouldMaintainDictionary()
get_Key()
set_Key(string)
get_Value()
set_Value(string)
.ctor()
.ctor(int)
.ctor(System.Func<MyNet.Utilities.Tests.Collections.ObservableKeyedCollectionTests.KeyedItem, object>, int)
GetKeyForItem(MyNet.Utilities.Tests.Collections.ObservableKeyedCollectionTests.KeyedItem)
ChangeItemKeyPublic(MyNet.Utilities.Tests.Collections.ObservableKeyedCollectionTests.KeyedItem, string)
ChangeItemKeyPublic(MyNet.Utilities.Tests.Collections.ObservableKeyedCollectionTests.KeyedItem, string, string)
get_IsDictionaryCreatedPublic()
CreateDictionaryNowPublic()
GetDictionaryStatsPublic()