public void AssignDCIdxTest() { // Arrange Split split = new Split(); split.DisplayCols.Add(new C1DisplayColumn()); split.DisplayCols.Add(new C1DisplayColumn()); split.DisplayCols.Add(new C1DisplayColumn()); string expectedResult = "0 1 2"; // Act split.AssignDCIdx(); string actualResult = $"{split.DisplayCols[0].Properties["DCIdx"]} {split.DisplayCols[1].Properties["DCIdx"]} {split.DisplayCols[2].Properties["DCIdx"]}"; //Assert Assert.AreEqual(expectedResult, actualResult); }