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

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

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

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

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

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

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

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

            Assert.IsNotNull(bike);
        }