public void FindUniqueVals_ShouldReturnListOfUniqueChars_WhenPassedNonUniqueStr(string original, List <char> expected) { // arrange var sut = new UniqueAndOrdered(); // act var actual = sut.FindUniqueVals <char, char>(original); // assert Assert.Equal(expected, actual); }
public void FindUniqueVals_ShouldReturnEmptyList_WhenNullOrEmptyValues_IntList(List <int> values) { // arrange var expected = new List <int>(); var sut = new UniqueAndOrdered(); // act var actual = sut.FindUniqueVals <int, int>(values); // assert Assert.Equal(expected, actual); }
public void FindUniqueVals_ShouldReturnEmptyList_WhenNullOrEmptyValues_String(string values) { // arrange var expected = new List <char>(); var sut = new UniqueAndOrdered(); // act var actual = sut.FindUniqueVals <char, char>(values); // assert Assert.Equal(expected, actual); }
public void FindUniqueVals_ShouldReturnListOfUniqueInts_WhenPassedListOfInts(List <int> values, List <int> expectedList) { // arrange var expected = expectedList; var sut = new UniqueAndOrdered(); // act var actual = sut.FindUniqueVals <int, int>(values); // assert Assert.Equal(expected, actual); }