// Copyright (c) 2007 Omer Rauchwerger (a.k.a rauchy) (omer@rauchy.net) // All rights reserved. // // This file is part of Regionerate. // // This program is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 3 of the License, // or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with this program. If not, see . using System.Collections.Generic; using NUnit.Framework; namespace Rauchy.Regionerate.Shared.Components.Rendering.Tests { [ TestFixture ] public sealed class InvisibleRegionRendererTests : RegionRendererTests { #region Helper Methods (4)  // [rgn] Protected Methods (4) protected override RegionRenderer CreateConcreteRenderer( CodeLayout.Configuration configuration ) { return new InvisibleRegionRenderer( configuration ); } /// /// Extracts the lines that are not region headers or footers. /// protected override IList ExtractBody( IList lines ) { // Since there is are no region declarations in invisible regions, return all lines, // besides the first and last lines, which are padders. IList body = new List(); for ( int i = 1; i < lines.Count - 1; i++ ) { body.Add( lines[ i ] ); } return body; } protected override void VerifyFooter(IList lines, CodeLayout.RenderingOptions renderingOptions) { } protected override void VerifyHeader(IList lines, int? expectedChildrenCount, CodeLayout.RenderingOptions renderingOptions) { } #endregion Helper Methods  } }