Exemplo n.º 1
0
        public void CompareTo_UsesName(string leftName, string rightName)
        {
            var left  = new Candidate(leftName);
            var right = new Candidate(rightName);

            var nameComparison      = StringComparer.OrdinalIgnoreCase.Compare(leftName, rightName);
            var candidateComparison = left.CompareTo(right);

            Assert.Equal(nameComparison, candidateComparison);
        }