예제 #1
0
        public void SerializeAddress_Basic()
        {
            var a = new Address();
            a.City = "GREEN BAY";
            a.StateOrProvinceCode = "WI";
            a.CountryCode = "US";

            Assert.AreEqual("GREEN BAY, WI", a.GetFriendlyAddressString());
        }
예제 #2
0
        public void SerializeAddress_Empty()
        {
            var a = new Address();

            Assert.AreEqual("", a.GetFriendlyAddressString());
        }