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

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

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

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

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