Skip to content

Commit

Permalink
Update test to expect 2 cache keys instead of 1
Browse files Browse the repository at this point in the history
Modified the assertion in `CacheDependencyBuilderTests.cs` to expect
`result.CacheKeys.Length` to be 2. This change reflects an update
in the `Create` method of the `builder` object, which now generates
or requires two cache keys.
  • Loading branch information
brandonhenricks committed Jan 10, 2025
1 parent 19b4e3d commit 4941e86
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void Create_ShouldHandleMultipleDependencyKeys()
// Assert
Assert.That(result, Is.Not.Null);
Assert.That(result, Is.InstanceOf<CMSCacheDependency>());
Assert.That(1, Is.EqualTo(result.CacheKeys.Length));
Assert.That(2, Is.EqualTo(result.CacheKeys.Length));
}

public class MockContentItemFieldsSource : IContentItemFieldsSource
Expand Down

0 comments on commit 4941e86

Please # to comment.