// 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 NUnit.Framework; using Rauchy.Regionerate.ServiceLayer.Components.Services; using Rauchy.Regionerate.ServiceLayer.Components.Tests.Properties; using Rauchy.Regionerate.Shared.Components; namespace Rauchy.Regionerate.ServiceLayer.Components.Tests { [ TestFixture ] public class IntegrationTests { #region Tests (1)  // [rgn] Public Methods (1) /// /// Driven by bug #47. /// Constructs a multiple times and makes sure the order of members is consistent. /// [ Test ] [ Category( "Integration" ) ] public void KeepsOrderConsistent() { string code = Resource.ConsistenOrder; CodeLayout codeLayout = CodeLayout.LoadXml( Resource.ConsistenOrderLayout ); DocumentService service = new DocumentService( codeLayout ); // Regionerate multiple times and make sure the result is consistent. for ( int i = 0; i < 3; i++ ) { Document document = new Document( "Code", code ); string regioneratedCode = service.Process( document ); Assert.AreEqual( Resource.ConsistentOrderResult.Trim(), regioneratedCode.Trim() ); } } #endregion Tests  } }