Ejemplo n.º 1
0
        public void RoundsCorrectly()
        {
            var model = new WeatherApiResult()
            {
                Temperature = 10.6,
                WindSpeed = 9.9
            };

            model.Round();
            model.WindSpeed.ShouldBeEquivalentTo(10);
            model.Temperature.ShouldBeEquivalentTo(11);
        }
Ejemplo n.º 2
0
 public void ConstructorSetsCreatedTime()
 {
     var model = new WeatherApiResult();
     model.CreatedStamp.Should().NotBeNull();
 }