コード例 #1
0
        public void Equals_EqualParameterWithAllMembers_ValueIsValueTypee()
        {
            var parameter1 = new QueryParameter("name", 5, QueryParameterType.Value);
            var parameter2 = new QueryParameter("name", 5, QueryParameterType.Value);

            Assert.That(parameter1.Equals(parameter2), Is.True);
        }
コード例 #2
0
        public void Equals_EqualParameterWithMandatoryMembers()
        {
            var parameter1 = new QueryParameter("name", null, QueryParameterType.Text);
            var parameter2 = new QueryParameter("name", null, QueryParameterType.Text);

            Assert.That(parameter1.Equals(parameter2), Is.True);
        }
コード例 #3
0
        public void Equals_EqualParameterWithAllMembers_ValueIsReferenceType()
        {
            var equalParameter = new QueryParameter("name", "value", QueryParameterType.Value);

            Assert.That(_parameter.Equals(equalParameter), Is.True);
        }