Exemple #1
0
        public void GetPosition()
        {
            var sut = new ProposalCollection
            {
                new Proposal {
                    Relevance = 1
                },
                new Proposal {
                    Relevance = 2
                }
            };

            Assert.AreEqual(1, sut.GetPosition(new Proposal {
                Relevance = 2
            }));
        }
Exemple #2
0
        public void GetPosition_NotFound()
        {
            var sut = new ProposalCollection();

            Assert.AreEqual(-1, sut.GetPosition(new Proposal()));
        }