예제 #1
0
        public void ThirdGenerationData()
        {
            // Act
            Hashtable data = XmlDataSource.GetDataBlock(typeof(XmlDataSourceTest), "XmlDataSource.xml", "currentaddress");

            // Assert
            AssertCurrentAddress(data);
        }
예제 #2
0
        public void SecondGenerationData()
        {
            // Act
            Hashtable data = XmlDataSource.GetDataBlock(typeof(XmlDataSourceTest), "XmlDataSource.xml", "dateofbirth");

            // Assert
            AssertDateOfBirth(data);
        }
예제 #3
0
        public void FirstGenerationData()
        {
            // Act
            Hashtable data = XmlDataSource.GetDataBlock(typeof(XmlDataSourceTest), "XmlDataSource.xml", "name");

            // Assert
            AssertName(data);
        }
예제 #4
0
        public void OverriddenData()
        {
            // Act
            Hashtable data = XmlDataSource.GetDataBlock(typeof(XmlDataSourceTest), "XmlDataSource.xml", "motorcyclewithsidecar");

            // Assert
            Assert.AreEqual("3", data["numberofwheels"]);
        }
예제 #5
0
 public void InvalidId()
 {
     // Act
     XmlDataSource.GetDataBlock(typeof(XmlDataSourceTest), "XmlDataSource.xml", "invalidid");
 }
예제 #6
0
 public void InvalidDataSource()
 {
     // Act
     XmlDataSource.GetDataBlock(typeof(XmlDataSourceTest), "InvalidFileName.xml", "indifferent");
 }