public void GetHashCodeSame() { // ARRANGE var first = new NameValueType("name", "value", "type"); var second = new NameValueType("name", "value", "type"); // ACT int firstHashCode = first.GetHashCode(); int secondHashCode = second.GetHashCode(); // ASSERT Assert.AreEqual(firstHashCode, secondHashCode); }
public void EqualsObject() { // ARRANGE var first = new NameValueType("name", "value", "type"); var second = new NameValueType("name", "value", "type"); // ACT bool equals = first.Equals((object) second); // ASSERT Assert.IsTrue(equals); }