We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6866d6 commit a6a0f2fCopy full SHA for a6a0f2f
1 file changed
TechnitiumLibrary.UnitTests/TechnitiumLibrary.ByteTree/ByteTreeTests.cs
@@ -202,6 +202,14 @@ public void TryUpdate_ShouldThrow_WhenNullKey()
202
Assert.ThrowsExactly<ArgumentNullException>(() => tree.TryUpdate(null, "x", "y"));
203
}
204
205
+ [TestMethod]
206
+ public void TryUpdate_ShouldReturnFalse_WhenKeyMissing()
207
+ {
208
+ ByteTree<string> tree = new ByteTree<string>();
209
+ Assert.IsFalse(tree.TryUpdate(Key(9), "x", "y"));
210
+ }
211
+
212
213
// ---------------------------
214
// AddOrUpdate
215
0 commit comments