public void Equals_should_be_correct(string a, string b, bool equals)
        {
            var subject  = new DatabaseNamespace(a);
            var compared = new DatabaseNamespace(b);

            subject.Equals(compared).Should().Be(equals);
        }
Пример #2
0
        // methods
        public bool Equals(CollectionNamespace other)
        {
            if (other == null)
            {
                return(false);
            }

            return(_databaseNamespace.Equals(other._databaseNamespace) &&
                   _collectionName == other._collectionName);
        }