public void Serializer_Passed_Invalid_Data_To_Serialize()
        {
            var serialiser = new JsonDotNetSerializer();

            Assert.That(
                new TestDelegate(() => serialiser.GetTimeSeriesDataListInt(string.Empty)),
                Throws.ArgumentNullException
                );
        }
        public void Can_Deserialize_Activities_Distance()
        {
            string content = SampleDataHelper.GetContent("TimeSeries-ActivitiesSteps.json");
            var deserializer = new JsonDotNetSerializer
            {
                RootProperty = TimeSeriesResourceType.Steps.ToTimeSeriesProperty()
            };

            var result = deserializer.GetTimeSeriesDataListInt(content);
            ValidateDataList(result);
        }
        public void Can_Deserialize_Activities_Distance()
        {
            string content      = SampleDataHelper.GetContent("TimeSeries-ActivitiesSteps.json");
            var    deserializer = new JsonDotNetSerializer
            {
                RootProperty = TimeSeriesResourceType.Steps.ToTimeSeriesProperty()
            };

            var result = deserializer.GetTimeSeriesDataListInt(content);

            ValidateDataList(result);
        }
Ejemplo n.º 4
0
        public void Serializer_Passed_Invalid_Data_To_Serialize()
        {
            var serialiser = new JsonDotNetSerializer();

            serialiser.GetTimeSeriesDataListInt(string.Empty);
        }
 public void Serializer_Passed_Invalid_Data_To_Serialize()
 {
     var serialiser = new JsonDotNetSerializer();
     serialiser.GetTimeSeriesDataListInt(string.Empty);
 }