public void EqualsAgainstNull() { // Arrange var key = ParamValue.Param.bodyhash; var value = "test-hash"; var param = new ParamValue(key, value); // Act var actual = param.Equals(null); // Assert Assert.IsFalse(actual); }
public void EqualsAgainstDifferentKey() { // Arrange var key = ParamValue.Param.bodyhash; var value = "test-hash"; var param1 = new ParamValue(ParamValue.Param.token, value); var param2 = new ParamValue(key, value); // Act var actual = param2.Equals(param1); // Assert Assert.IsFalse(actual); }
public void EqualsEqualParamValue() { // Arrange var key = ParamValue.Param.bodyhash; var value = "test-hash"; var param1 = new ParamValue(key, value); var param2 = new ParamValue(key, value); // Act var actual = param2.Equals(param1); // Assert Assert.IsTrue(actual); }
public void EqualsAgainstDifferentValue() { // Arrange var key = ParamValue.Param.bodyhash; var value1 = "test-hash1"; var value2 = "test-hash2"; var param1 = new ParamValue(key, value1); var param2 = new ParamValue(key, value2); // Act var actual = param2.Equals(param1); // Assert Assert.IsFalse(actual); }