예제 #1
0
 public void XmlStorageSaveA()
 {
     XmlStorageManager.Save("TestA", new MockData()
     {
         Name    = "Bob",
         Age     = 25,
         Email   = "*****@*****.**",
         Website = "http://doubleyouww.com"
     });
 }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
 public void XmlStorageSaveB()
 {
     XmlStorageManager.Save("TestB", new MockData());
 }
예제 #5
0
 public void XmlStorageSaveWithoutInit()
 {
     XmlStorageManager.Save("B", new MockData());
 }
예제 #6
0
 public void XmlStorageSaveFailureE()
 {
     XmlStorageManager.Save("A", new NonSerializableMockData());
 }
예제 #7
0
 public void XmlStorageSaveFailureD()
 {
     XmlStorageManager.Save("@_)$%*#!$_&_*+!(&)$^%&*{}[]'\\//", new MockData());
 }
예제 #8
0
 public void XmlStorageSaveFailureC()
 {
     XmlStorageManager.Save("A", null);
 }
예제 #9
0
 public void XmlStorageSaveFailureB()
 {
     XmlStorageManager.Save(" ", new MockData());
 }
예제 #10
0
 public void XmlStorageSaveFailureA()
 {
     XmlStorageManager.Save(null, null);
 }