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

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

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

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

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

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

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

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

            Assert.IsNotNull(bike);
        }