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