public static IEnumerable <Viewport> FilterActiveViewport(IEnumerable <Viewport> viewports, BufferId activeBufferId) { return(viewports.Where(viewport => viewport.Destination.Name == activeBufferId.FileName && viewport.BufferId == activeBufferId.ToString())); }
public void ToString_returns_filename_at_region_if_a_region_was_specified() { var bufferId = new BufferId("MyFile.cs", "myregion"); bufferId.ToString().Should().Be("MyFile.cs@myregion"); }