Create generic ThreadSafeValue

This commit is contained in:
Sebastian Godelet
2021-06-23 16:21:08 +10:00
parent 6dff32505e
commit 6c27499769
11 changed files with 35 additions and 102 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ namespace Meade.net.UnitTests
public void When_Assigned_ThenValueIsSame(bool value)
{
// given
ThreadSafeBool sut = value;
ThreadSafeValue<bool> sut = value;
// when
bool actual = sut;
@@ -26,7 +26,7 @@ namespace Meade.net.UnitTests
public void When_SetValue_ThenValueIsUpdated(bool initialValue, bool setValue)
{
// given
ThreadSafeBool sut = initialValue;
ThreadSafeValue<bool> sut = initialValue;
// when
sut.Set(setValue);