public void NotActiveBackOnTrackEntriesShouldGetRemovedFromHostEntryList() { //Arrange DoSetupWithUnlockingAndBasicHostFileWithUcosl(); FileModification.WriteFile(NewHostFileTwoLocation, "#Test" + Environment.NewLine + "127.0.0.1 manuelweb.at #BackOnTrackEntry"); var hostEntries = _ucosl.GetHostEntries(); _ucosl.AddAllLinesFromHostFileIntoEntryList(); _ucosl.AddMissingEntriesIntoEntryList(Application.UI.MainView.UserConfiguration); //Act int hostEntriesBeforeRemovingNotActiveOnes = hostEntries.Count; _ucosl.RemoveNotActiveEntriesFromEntryList(Application.UI.MainView.UserConfiguration); int hostEntriesAfterRemovingNotActiveOnes = hostEntries.Count; //Assert hostEntriesBeforeRemovingNotActiveOnes.Should().Be(2); hostEntriesAfterRemovingNotActiveOnes.Should().Be(1); }