Example #1
0
        public void ParamtersWithNameAndValueIsNullDoesNotCauseAnErrorAndAreNotEqual()
        {
            var firstParamter = new Parameter("FirstParamter", 17);
            var secondParameter = new Parameter("FirstParamter", null);

            firstParamter.Should().NotBe(secondParameter);
        }
Example #2
0
        public void ParamtersWithNameAndSqlValueAreEqual()
        {
            var firstParamter = new Parameter("FirstParamter", 17);
            var secondParameter = new Parameter("FirstParamter", 17);

            firstParamter.Should().Be(secondParameter);
        }
Example #3
0
        public void ParameterWithDifferentNamesAndSameValueAreNotEqual()
        {
            var firstParamter = new Parameter("FirstParamter", 17);
            var secondParameter = new Parameter("SecondParamter", 17);

            firstParamter.Should().NotBe(secondParameter);
        }
Example #4
0
        public void ParameterWithSameNameAndDifferentValueAreNotEqual()
        {
            var firstParamter = new Parameter("FirstParamter", 17);
            var secondParameter = new Parameter("FirstParamter", "test2");

            firstParamter.Should().NotBe(secondParameter);
        }
Example #5
0
 private bool AreSqlValuesEqual(Parameter otherObj)
 {
     return ReferenceEquals(SqlValue, null) ? ReferenceEquals(otherObj.SqlValue, null) : SqlValue.Equals(otherObj.SqlValue);
 }