We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e783286 commit c7b399eCopy full SHA for c7b399e
BitFaster.Caching.UnitTests/Lfu/LfuNodeListTests.cs
@@ -1,11 +1,22 @@
1
-using BitFaster.Caching.Lfu;
+using System;
2
+using BitFaster.Caching.Lfu;
3
using FluentAssertions;
4
using Xunit;
5
6
namespace BitFaster.Caching.UnitTests.Lfu
7
{
8
public class LfuNodeListTests
9
10
+#if DEBUG
11
+ [Fact]
12
+ public void WhenEmptyRemoveFirstThrows()
13
+ {
14
+ var list = new LfuNodeList<int, int>();
15
+ Action remove = () => { list.RemoveFirst(); };
16
+ remove.Should().Throw<InvalidOperationException>();
17
+ }
18
+#endif
19
+
20
[Fact]
21
public void WhenPreviousNullLastReturnsNull()
22
0 commit comments