public void Equals_ObjectAnotherEquivalentInlineCountQueryPart_ReturnsTrue()
        {
            var    queryPart = new InlineCountQueryPart(InlineCountType.None);
            object other     = new InlineCountQueryPart(InlineCountType.None);

            var actual = queryPart.Equals(other);

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

            var actual = queryPart.Equals(other);

            Assert.That(actual, Is.False);
        }
        public void GetHashCode_InlineCountNone_ReturnsInlineCountNoneHashCode()
        {
            var queryPart = new InlineCountQueryPart(InlineCountType.None);

            var expected = InlineCountType.None.GetHashCode();
            var actual   = queryPart.GetHashCode();

            Assert.That(actual, Is.EqualTo(expected));
        }
        public void Equals_AnotherDifferentInlineCountQueryPart_ReturnsFalse()
        {
            var queryPart = new InlineCountQueryPart(InlineCountType.None);
            var other = new InlineCountQueryPart(InlineCountType.AllPages);

            var actual = queryPart.Equals(other);

            Assert.That(actual, Is.False);
        }
        public void Equals_ObjectAnotherEquivalentInlineCountQueryPart_ReturnsTrue()
        {
            var queryPart = new InlineCountQueryPart(InlineCountType.None);
            object other = new InlineCountQueryPart(InlineCountType.None);

            var actual = queryPart.Equals(other);

            Assert.That(actual, Is.True);
        }
        public void Equals_ObjectOfDifferentType_ReturnsFalse()
        {
            var queryPart = new InlineCountQueryPart(InlineCountType.None);
            object other = String.Empty;

            var actual = queryPart.Equals(other);

            Assert.That(actual, Is.False);
        }
        public void GetHashCode_InlineCountAllPages_ReturnsInlineCountAllPagesHashCode()
        {
            var queryPart = new InlineCountQueryPart(InlineCountType.AllPages);

            var expected = InlineCountType.AllPages.GetHashCode();
            var actual   = queryPart.GetHashCode();

            Assert.That(actual, Is.EqualTo(expected));
        }
        public void Equals_Self_ReturnsTrue()
        {
            var queryPart = new InlineCountQueryPart(InlineCountType.None);
            var other     = queryPart;

            var actual = queryPart.Equals(other);

            Assert.That(actual, Is.True);
        }
        public void Equals_AnotherDifferentInlineCountQueryPart_ReturnsFalse()
        {
            var queryPart = new InlineCountQueryPart(InlineCountType.None);
            var other     = new InlineCountQueryPart(InlineCountType.AllPages);

            var actual = queryPart.Equals(other);

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

            var actual = queryPart.Equals(other);

            Assert.That(actual, Is.False);
        }
        public void Equals_InlineCountQueryPartNull_ReturnsFalse()
        {
            var queryPart = new InlineCountQueryPart(InlineCountType.None);
            InlineCountQueryPart other = null;

            var actual = queryPart.Equals(other);

            Assert.That(actual, Is.False);
        }
        public void ToString_None_ReturnsCorrectString()
        {
            var inlineCountQueryPart = new InlineCountQueryPart(InlineCountType.None);

            Assert.That(inlineCountQueryPart.ToString(), Is.EqualTo("$inlinecount=none"));
        }
        public void ToString_AllPages_ReturnsCorrectString()
        {
            var inlineCountQueryPart = new InlineCountQueryPart(InlineCountType.AllPages);

            Assert.That(inlineCountQueryPart.ToString(), Is.EqualTo("$inlinecount=allpages"));
        }
        public void InlineCountQueryPart_InheritsFromIEquatable()
        {
            var actual = new InlineCountQueryPart(InlineCountType.None);

            Assert.That(actual, Is.InstanceOf<IEquatable<InlineCountQueryPart>>());
        }
        public void GetHashCode_InlineCountNone_ReturnsInlineCountNoneHashCode()
        {
            var queryPart = new InlineCountQueryPart(InlineCountType.None);

            var expected = InlineCountType.None.GetHashCode();
            var actual = queryPart.GetHashCode();

            Assert.That(actual, Is.EqualTo(expected));
        }
        public void ToString_AllPages_ReturnsCorrectString()
        {
            var inlineCountQueryPart = new InlineCountQueryPart(InlineCountType.AllPages);

            Assert.That(inlineCountQueryPart.ToString(), Is.EqualTo("$inlinecount=allpages"));
        }
        public void InlineCountQueryPart_InheritsFromIEquatable()
        {
            var actual = new InlineCountQueryPart(InlineCountType.None);

            Assert.That(actual, Is.InstanceOf <IEquatable <InlineCountQueryPart> >());
        }
        public void ToString_None_ReturnsCorrectString()
        {
            var inlineCountQueryPart = new InlineCountQueryPart(InlineCountType.None);

            Assert.That(inlineCountQueryPart.ToString(), Is.EqualTo("$inlinecount=none"));
        }
        public void Equals_Self_ReturnsTrue()
        {
            var queryPart = new InlineCountQueryPart(InlineCountType.None);
            var other = queryPart;

            var actual = queryPart.Equals(other);

            Assert.That(actual, Is.True);
        }
        public void GetHashCode_InlineCountAllPages_ReturnsInlineCountAllPagesHashCode()
        {
            var queryPart = new InlineCountQueryPart(InlineCountType.AllPages);

            var expected = InlineCountType.AllPages.GetHashCode();
            var actual = queryPart.GetHashCode();

            Assert.That(actual, Is.EqualTo(expected));
        }