public void Equals_ObjectSelf_ReturnsTrue()
        {
            var queryPart = new TopQueryPart();
            object other = queryPart;

            var actual = queryPart.Equals(other);

            Assert.That(actual, Is.True);
        }
        public void Equals_ObjectNull_ReturnsFalse()
        {
            var queryPart = new TopQueryPart();
            object other = null;

            var actual = queryPart.Equals(other);

            Assert.That(actual, Is.False);
        }
        public void Equals_ObjectOfDifferentType_ReturnsFalse()
        {
            var queryPart = new TopQueryPart();
            object other = String.Empty;

            var actual = queryPart.Equals(other);

            Assert.That(actual, Is.False);
        }
        public void Equals_AnotherDifferentTopQueryPart_ReturnsFalse()
        {
            var queryPart = new TopQueryPart();
            var other = new TopQueryPart(3);

            var actual = queryPart.Equals(other);

            Assert.That(actual, Is.False);
        }
        public void Equals_ObjectAnotherEquivalentTopQueryPart_ReturnsTrue()
        {
            var queryPart = new TopQueryPart();
            object other = new TopQueryPart();

            var actual = queryPart.Equals(other);

            Assert.That(actual, Is.True);
        }
Beispiel #6
0
        public void Equals_ObjectAnotherEquivalentTopQueryPart_ReturnsTrue()
        {
            var    queryPart = new TopQueryPart();
            object other     = new TopQueryPart();

            var actual = queryPart.Equals(other);

            Assert.That(actual, Is.True);
        }
Beispiel #7
0
        public void Equals_AnotherDifferentTopQueryPart_ReturnsFalse()
        {
            var queryPart = new TopQueryPart();
            var other     = new TopQueryPart(3);

            var actual = queryPart.Equals(other);

            Assert.That(actual, Is.False);
        }
Beispiel #8
0
        public void Equals_Self_ReturnsTrue()
        {
            var queryPart = new TopQueryPart();
            var other     = queryPart;

            var actual = queryPart.Equals(other);

            Assert.That(actual, Is.True);
        }
Beispiel #9
0
        public void Equals_ObjectOfDifferentType_ReturnsFalse()
        {
            var    queryPart = new TopQueryPart();
            object other     = String.Empty;

            var actual = queryPart.Equals(other);

            Assert.That(actual, Is.False);
        }
Beispiel #10
0
        public void Equals_TopQueryPartNull_ReturnsFalse()
        {
            var          queryPart = new TopQueryPart();
            TopQueryPart other     = null;

            var actual = queryPart.Equals(other);

            Assert.That(actual, Is.False);
        }