Exemplo n.º 1
0
        public void AddressObjectTest()
        {
            var testObject = TestModels.GetAddress();

            Assert.AreEqual("Test", testObject.firstName);
            Assert.AreEqual("Burberry", testObject.lastName);
            Assert.AreEqual("Basement Flat", testObject.address1);
            Assert.AreEqual("61 Wellfield Road", testObject.address2);
            Assert.AreEqual("Roath", testObject.city);
            Assert.AreEqual("company", testObject.companyName);
            Assert.AreEqual("CF24 3DG", testObject.zip);
            Assert.AreEqual(0, testObject.phone);
            Assert.AreEqual("home", testObject.addressAlias);
            Assert.AreEqual("Cardiff", testObject.stateProvince);
            Assert.AreEqual("GB", testObject.country);
        }
Exemplo n.º 2
0
 public void AddressToStringTest()
 {
     Assert.IsFalse(TestModels.GetAddress().ToString().Length == 0);
 }
Exemplo n.º 3
0
 public void AddressConvertToJsonTest()
 {
     Assert.IsFalse(TestModels.GetAddress().ConvertToJson().Length == 0);
 }