public void AddDuplicate_WithTheSamePositionAndOrderNumber_HasOnePositionAndNumber() { string value = "слово"; int position = 22; int orderNumber = 3; Word word = new Word(value, position, orderNumber); word.AddDuplicate(position, orderNumber); int actualPositionCount = word.Positions.Count(); int actualOrderNumberCount = word.OrderNumbers.Count(); Assert.AreEqual(1, actualPositionCount); Assert.AreEqual(1, actualOrderNumberCount); }
public void AddDuplicate_With2PositionAndOrderNumber_Has2PositionAndNumber() { string value = "слово"; int position1 = 22; int position2 = 42; int orderNumber1 = 3; int orderNumber2 = 23; Word word = new Word(value, position1, orderNumber1); word.AddDuplicate(position2, orderNumber2); int actualPositionCount = word.Positions.Count(); int actualOrderNumberCount = word.OrderNumbers.Count(); Assert.AreEqual(2, actualPositionCount); Assert.AreEqual(2, actualOrderNumberCount); }