changeset 12:0be17f8102ed

* Fix unit test paths
author IBBoard <dev@ibboard.co.uk>
date Wed, 07 Nov 2012 20:22:20 +0000
parents c7e381ba537a
children 48b646dd1dc2
files IniFileReaderTest.cs
diffstat 1 files changed, 9 insertions(+), 11 deletions(-) [+]
line diff
     1.1 --- a/IniFileReaderTest.cs	Wed Jan 26 20:01:45 2011 +0000
     1.2 +++ b/IniFileReaderTest.cs	Wed Nov 07 20:22:20 2012 +0000
     1.3 @@ -1,7 +1,6 @@
     1.4  // This file (IniFileReaderTest.cs) is a part of the IBBoard.Ini.Tests library and is copyright 2009 IBBoard.
     1.5  //
     1.6  // The file and the library/program it is in are licensed under the GNU LGPL license, either version 3 of the License or (at your option) any later version. Please see COPYING.LGPL for more information and the full license.
     1.7 -
     1.8  using System;
     1.9  using System.IO;
    1.10  using NUnit.Framework;
    1.11 @@ -66,7 +65,7 @@
    1.12  					}
    1.13  				}
    1.14  
    1.15 -				Assert.IsTrue(found, "Did not find "+key);
    1.16 +				Assert.IsTrue(found, "Did not find " + key);
    1.17  			}
    1.18  		}
    1.19  		
    1.20 @@ -114,15 +113,14 @@
    1.21  		[Test()]
    1.22  		public void TestIniFileReaderReturnsEmptyObjectForEmptyIniFile()
    1.23  		{
    1.24 -			IniFile file = IniFileReader.ReadFile(new FileInfo("EmptyFile.ini"));
    1.25 +			IniFile file = IniFileReader.ReadFile(new FileInfo("TestData/EmptyFile.ini"));
    1.26  			Assert.AreEqual(0, file.Sections.Length);
    1.27  		}
    1.28 -
    1.29  		
    1.30  		[Test()]
    1.31  		public void TestIniFileReaderContainsExpectedSectionForSingleSectionIniFile()
    1.32  		{
    1.33 -			IniFile file = IniFileReader.ReadFile(new FileInfo("SingleSectionSingleLine.ini"));
    1.34 +			IniFile file = IniFileReader.ReadFile(new FileInfo("TestData/SingleSectionSingleLine.ini"));
    1.35  			Assert.AreEqual(1, file.Sections.Length);
    1.36  			Assert.IsTrue(file.HasSection("ASection"));
    1.37  			Assert.IsNotNull(file["ASection"]);
    1.38 @@ -133,7 +131,7 @@
    1.39  		[Test()]
    1.40  		public void TestIniFileReaderContainsExpectedSectionForSingleSectionIniFileWithContent()
    1.41  		{
    1.42 -			IniFile file = IniFileReader.ReadFile(new FileInfo("SingleSectionWithContent.ini"));
    1.43 +			IniFile file = IniFileReader.ReadFile(new FileInfo("TestData/SingleSectionWithContent.ini"));
    1.44  			Assert.AreEqual(1, file.Sections.Length);
    1.45  			Assert.IsTrue(file.HasSection("ASection"));
    1.46  			Assert.IsNotNull(file["ASection"]);
    1.47 @@ -144,7 +142,7 @@
    1.48  		[Test()]
    1.49  		public void TestIniFileReaderContainsExpectedSectionsForTwoSectionIniFileWithContent()
    1.50  		{
    1.51 -			IniFile file = IniFileReader.ReadFile(new FileInfo("DoubleSectionWithContent.ini"));
    1.52 +			IniFile file = IniFileReader.ReadFile(new FileInfo("TestData/DoubleSectionWithContent.ini"));
    1.53  			Assert.AreEqual(2, file.Sections.Length);
    1.54  			Assert.IsTrue(file.HasSection("ASection"));
    1.55  			Assert.IsNotNull(file["ASection"]);
    1.56 @@ -159,7 +157,7 @@
    1.57  		[Test()]
    1.58  		public void TestIniFileReaderContainsExpectedSectionForSingleSectionIniFileWithMultiLineContent()
    1.59  		{
    1.60 -			IniFile file = IniFileReader.ReadFile(new FileInfo("SingleSectionWithMultiLineContent.ini"));
    1.61 +			IniFile file = IniFileReader.ReadFile(new FileInfo("TestData/SingleSectionWithMultiLineContent.ini"));
    1.62  			Assert.AreEqual(1, file.Sections.Length);
    1.63  			Assert.IsTrue(file.HasSection("ASection"));
    1.64  			IniSection section = file["ASection"];
    1.65 @@ -182,14 +180,14 @@
    1.66  					}
    1.67  				}
    1.68  
    1.69 -				Assert.IsTrue(found, "Did not find "+key);
    1.70 +				Assert.IsTrue(found, "Did not find " + key);
    1.71  			}
    1.72  		}
    1.73  		
    1.74  		[Test()]
    1.75  		public void TestIniFileReaderContainsExpectedSectionWhenFilePaddedAtStart()
    1.76  		{
    1.77 -			IniFile file = IniFileReader.ReadFile(new FileInfo("StartPadded.ini"));
    1.78 +			IniFile file = IniFileReader.ReadFile(new FileInfo("TestData/StartPadded.ini"));
    1.79  			Assert.AreEqual(1, file.Sections.Length);
    1.80  			Assert.IsTrue(file.HasSection("ASection"));
    1.81  			Assert.IsNotNull(file["ASection"]);
    1.82 @@ -200,7 +198,7 @@
    1.83  		[Test()]
    1.84  		public void TestIniFileReaderContainsExpectedSectionsForTwoConsecutiveSectionSectionsInFile()
    1.85  		{
    1.86 -			IniFile file = IniFileReader.ReadFile(new FileInfo("ConsecutiveSection.ini"));
    1.87 +			IniFile file = IniFileReader.ReadFile(new FileInfo("TestData/ConsecutiveSection.ini"));
    1.88  			Assert.AreEqual(2, file.Sections.Length);
    1.89  			Assert.IsTrue(file.HasSection("SectionA"));
    1.90  			Assert.IsNotNull(file["SectionA"]);