public void AddingRangesShouldWorkFromMethod() { //Arrange var testSearch = new SearchRange(); // ReSharper disable UseObjectOrCollectionInitializer var searchDict = new SearchRangeDictionary(); // ReSharper restore UseObjectOrCollectionInitializer //Act searchDict.Add(testSearch); //Assert AddingTest(searchDict, testSearch); }
public void AddingSearchRangeArrayFromMethod() { //Arrange var testSearchArray = new[] { new SearchRange() }; // ReSharper disable UseObjectOrCollectionInitializer var searchDict = new SearchRangeDictionary(); // ReSharper restore UseObjectOrCollectionInitializer //Act searchDict.Add(testSearchArray); //Assert AddingTest(searchDict, testSearchArray[0]); }