public void Should_return_actual_objects_HashCode() { const string testString = "Hello World!"; var @class = new TestClass { TestValue = testString }; var reader = new PropertyReader<TestClass>("TestValue"); reader.GetItemHashCode(@class).ShouldEqual(testString.GetHashCode()); }
public void Should_return_zero_when_trying_to_get_a_null_objects_HashCode() { var @class = new TestClass(); var reader = new PropertyReader <TestClass>("TestValue"); reader.GetItemHashCode(@class).ShouldEqual(0); }
public void Should_return_actual_objects_HashCode() { const string testString = "Hello World!"; var @class = new TestClass { TestValue = testString }; var reader = new PropertyReader <TestClass>("TestValue"); reader.GetItemHashCode(@class).ShouldEqual(testString.GetHashCode()); }
public void Should_return_zero_when_trying_to_get_a_null_objects_HashCode() { var @class = new TestClass(); var reader = new PropertyReader<TestClass>("TestValue"); reader.GetItemHashCode(@class).ShouldEqual(0); }