public void NotEqualsTest() { var item = new CacheItem <string>("test category", "test id", "test item", DateTime.Now); var item2 = new CacheItem <string>("test category 2", "test id 2", "test item 2", DateTime.Now); Assert.False(item.Equals(item2)); Assert.False(item.Equals(new object())); Assert.False(item.Equals(null !)); }
public void EqualsTest() { var item = new CacheItem <string>("test category", "test id", "test item", DateTime.Now); Assert.True(item.Equals(item)); }