示例#1
0
        public void TestBikeUnmarshallingDescription()
        {
            Gear.Bike bike = Unmarshaller <Gear.Bike> .Unmarshal(_json);

            Assert.IsTrue(bike.Description.Equals(String.Empty));
        }
示例#2
0
        public void TestBikeUnmarshallingPrimary()
        {
            Gear.Bike bike = Unmarshaller <Gear.Bike> .Unmarshal(_json);

            Assert.IsTrue(bike.IsPrimary);
        }
示例#3
0
        public void TestBikeUnmarshallingFrameType()
        {
            Gear.Bike bike = Unmarshaller <Gear.Bike> .Unmarshal(_json);

            Assert.IsTrue(bike.FrameType == BikeType.Road);
        }
示例#4
0
        public void TestBikeUnmarshallingId()
        {
            Gear.Bike bike = Unmarshaller <Gear.Bike> .Unmarshal(_json);

            Assert.IsTrue(bike.Id.Equals("b814946"));
        }
示例#5
0
        public void TestBikeUnmarshallingModel()
        {
            Gear.Bike bike = Unmarshaller <Gear.Bike> .Unmarshal(_json);

            Assert.IsTrue(bike.Model.Equals("Roadlite AL 7.0"));
        }
示例#6
0
        public void TestBikeUnmarshallingBrand()
        {
            Gear.Bike bike = Unmarshaller <Gear.Bike> .Unmarshal(_json);

            Assert.IsTrue(bike.Brand.Equals("Canyon"));
        }
示例#7
0
        public void TestBikeUnmarshallingName()
        {
            Gear.Bike bike = Unmarshaller <Gear.Bike> .Unmarshal(_json);

            Assert.IsTrue(bike.Name.Equals("Canyon Roadlite AL 7.0"));
        }
示例#8
0
        public void TestBikeUnmarshalling()
        {
            Gear.Bike bike = Unmarshaller <Gear.Bike> .Unmarshal(_json);

            Assert.IsNotNull(bike);
        }