public void Get_Total_Weighting_From_Without_Votings_Returns_Empty_List() { var sut = new Weighting(); var result = sut.Get_Total_Weighting_From(new List <TotalWeighting>()); Assert.AreEqual(0, result.StoryIndizes.Count()); result = sut.Get_Total_Weighting_From(null); Assert.AreEqual(0, result.StoryIndizes.Count()); }
public void Gesamtgewichtung_berechne_richtig() { var estimatorWeightings = new List <TotalWeighting>() { new TotalWeighting() { StoryIndizes = new List <int> { 2, 0, 1 } }, new TotalWeighting() { StoryIndizes = new List <int> { 1, 2, 0 } }, new TotalWeighting() { StoryIndizes = new List <int> { 2, 1, 0 } }, }; var sut = new Weighting(); var result = sut.Get_Total_Weighting_From(estimatorWeightings); Assert.AreEqual(new[] { 2, 1, 0 }, result.StoryIndizes); }