public void Equals_GivenNullObject_ShouldReturnFalse() { var key = new SpecializationKey(typeof(TestEntity), FileType.Default); var result = key.Equals(null as object); Assert.False(result); }
public void Equals_GivenKeyWithDifferentFileType_ShouldReturnFalse() { var key = new SpecializationKey(typeof (TestEntity), FileType.Default); var other = new SpecializationKey(typeof(TestEntity), FileType.Image); var result = key.Equals(other); Assert.False(result); }