protected UserSettingsXmlDeserialisationTests()
 {
     Xml = new DefaultUserSettingsXml();
     SetupXml(Xml);
     var content = Xml.ToString();
     store.Expect(x => x.LoadXml(Arg<string>.Is.Anything)).Return(content);
     settings = file.Load();
 }
 protected override void SetupXml(DefaultUserSettingsXml xml)
 {
     /* Override the Default Values to Test Assignment : Default (Req'd to Run Tests) */
     xml.TomatoTime = "30";
     xml.BreakTime = "10";
     xml.SetBreakTime = "60";
     xml.StartBGColor = "Yellow";
     xml.EndBGColor = "Purple";
     xml.StartFGColor = "Orange";
     xml.EndFGColor = "Pink";
 }
 protected override void SetupXml(DefaultUserSettingsXml xml)
 {
     /* Quick Test to Ensure All Values Are Processed When Comments Removed */
     xml.IncludeComments = false;
 }
 protected abstract void SetupXml(DefaultUserSettingsXml xml);
 protected override void SetupXml(DefaultUserSettingsXml xml)
 {
     xml.BreakTime = "bad";
 }
 protected override void SetupXml(DefaultUserSettingsXml xml)
 {
     /* BEWARE: I originally put 'bad' in here, forgetting that is a valid color code! (BBAADD) :D */
     xml.StartBGColor = "thisisnotavalidcolor";
     xml.StartFGColor = "andanotherbadcolor!";
     xml.EndBGColor = "thiscantbeacolor";
 }