public void ParamtersWithNameAndValueIsNullDoesNotCauseAnErrorAndAreNotEqual() { var firstParamter = new Parameter("FirstParamter", 17); var secondParameter = new Parameter("FirstParamter", null); firstParamter.Should().NotBe(secondParameter); }
public void ParamtersWithNameAndSqlValueAreEqual() { var firstParamter = new Parameter("FirstParamter", 17); var secondParameter = new Parameter("FirstParamter", 17); firstParamter.Should().Be(secondParameter); }
public void ParameterWithDifferentNamesAndSameValueAreNotEqual() { var firstParamter = new Parameter("FirstParamter", 17); var secondParameter = new Parameter("SecondParamter", 17); firstParamter.Should().NotBe(secondParameter); }
public void ParameterWithSameNameAndDifferentValueAreNotEqual() { var firstParamter = new Parameter("FirstParamter", 17); var secondParameter = new Parameter("FirstParamter", "test2"); firstParamter.Should().NotBe(secondParameter); }
private bool AreSqlValuesEqual(Parameter otherObj) { return ReferenceEquals(SqlValue, null) ? ReferenceEquals(otherObj.SqlValue, null) : SqlValue.Equals(otherObj.SqlValue); }