Sorts by level now.
Signed-off-by: Melissa Avery-Weir <melissa.avery@wellsfargo.com>
This commit is contained in:
@@ -6,6 +6,7 @@ using Xunit;
|
||||
using d20_SRD_Spell_Lists.Models;
|
||||
using System.Xml.Linq;
|
||||
using System.IO;
|
||||
using d20_SRD_Spell_Lists.Properties;
|
||||
|
||||
namespace d20_SRD_Spell_Lists_Tests
|
||||
{
|
||||
@@ -49,6 +50,23 @@ namespace d20_SRD_Spell_Lists_Tests
|
||||
});
|
||||
}
|
||||
|
||||
//[Fact]
|
||||
//public void savingWithoutPreexistingUserFileCreatesOne() {
|
||||
// if (System.IO.File.Exists(Settings.Default.UserSpells)) {
|
||||
// System.IO.File.Delete(Settings.Default.UserSpells);
|
||||
// }
|
||||
// SpellSet spells = new SpellSet(masterSpellList);
|
||||
// spells.addUserSpell(new XElement("spell",
|
||||
// new XElement("name", "custom test spell")
|
||||
// ));
|
||||
|
||||
// Assert.DoesNotThrow(delegate {
|
||||
// spells.save();
|
||||
// });
|
||||
|
||||
// Assert.True(System.IO.File.Exists(Settings.Default.UserSpells));
|
||||
//}
|
||||
|
||||
[Fact]
|
||||
public void loadingValidMasterXMLShouldResultIn699MasterSpells() {
|
||||
SpellSet spells = new SpellSet(masterSpellList, userSpellList);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?><character><name>Thomasina</name><class>Cleric</class><spells><spell><name>Dummy Character Spell</name><short_description>A short description.</short_description></spell></spells></character>
|
||||
<?xml version="1.0" encoding="utf-8" ?><character><spells><spell><name>Dummy Character Spell</name><short_description>A short description.</short_description></spell></spells></character>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user