public void RemoveSection_ValidSection_RemovesSection() { IniDocument document = new FakeIniDocument(); document.Load(CreateIniString()); document.RemoveSection("Section"); document.Save(Arg.Any <string>()); var expected = "[General]\r\n" + "MagazineName=magazine.mgd\r\n" + "MagazinePath=C:\\magazine.mgd\r\n" + "LeadFrameName=leadframe.lfd\r\n" + "LeadFramePath=C:\\leadframe.lfd\r\n" + "\r\n"; var actual = ((FakeIniDocument)document).SavedIni; Assert.AreEqual(expected, actual); }