Mercurial > repos > IBBoard.Ini.Tests
comparison IniFileReaderTest.cs @ 3:2d2f4084679f
Re #7 - Add tests for INI parsing
* Add section parsing test class
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 18 Jan 2009 13:51:47 +0000 |
parents | f880d41804d6 |
children | 4f281289bcdd |
comparison
equal
deleted
inserted
replaced
2:f880d41804d6 | 3:2d2f4084679f |
---|---|
15 public void TestIniFileReaderReturnsEmptyObjectForEmptyIniText() | 15 public void TestIniFileReaderReturnsEmptyObjectForEmptyIniText() |
16 { | 16 { |
17 IniFile file = IniFileReader.ReadFile(""); | 17 IniFile file = IniFileReader.ReadFile(""); |
18 Assert.AreEqual(0, file.Sections.Length); | 18 Assert.AreEqual(0, file.Sections.Length); |
19 } | 19 } |
20 | |
21 | 20 |
22 [Test()] | 21 [Test()] |
23 public void TestIniFileReaderContainsExpectedSectionForSingleSectionIniText() | 22 public void TestIniFileReaderContainsExpectedSectionForSingleSectionIniText() |
24 { | 23 { |
25 IniFile file = IniFileReader.ReadFile("[ASection]"); | 24 IniFile file = IniFileReader.ReadFile("[ASection]"); |