public void XmlStorageSaveA() { XmlStorageManager.Save("TestA", new MockData() { Name = "Bob", Age = 25, Email = "*****@*****.**", Website = "http://doubleyouww.com" }); }
public void XmlStorageSaveAndLoadB() { XmlStorageManager.Save("TestD", new MockData()); var d = XmlStorageManager.Load <MockData>("TestD"); Assert.AreEqual(default(string), d.Name); Assert.AreEqual(default(int), d.Age); Assert.AreEqual(default(string), d.Email); Assert.AreEqual(default(string), d.Website); }
public void XmlStorageSaveAndLoadA() { XmlStorageManager.Save("TestC", new MockData() { Name = "Bob", Age = 25, Email = "*****@*****.**", Website = "http://doubleyouww.com" }); var d = XmlStorageManager.Load <MockData>("TestC"); Assert.AreEqual("Bob", d.Name); Assert.AreEqual(25, d.Age); Assert.AreEqual("*****@*****.**", d.Email); Assert.AreEqual("http://doubleyouww.com", d.Website); }
public void XmlStorageSaveB() { XmlStorageManager.Save("TestB", new MockData()); }
public void XmlStorageSaveWithoutInit() { XmlStorageManager.Save("B", new MockData()); }
public void XmlStorageSaveFailureE() { XmlStorageManager.Save("A", new NonSerializableMockData()); }
public void XmlStorageSaveFailureD() { XmlStorageManager.Save("@_)$%*#!$_&_*+!(&)$^%&*{}[]'\\//", new MockData()); }
public void XmlStorageSaveFailureC() { XmlStorageManager.Save("A", null); }
public void XmlStorageSaveFailureB() { XmlStorageManager.Save(" ", new MockData()); }
public void XmlStorageSaveFailureA() { XmlStorageManager.Save(null, null); }