Exemple #1
0
        public void Constructor_WithDefaultValues_PropertiesAreSet()
        {
            var granularity = new DurationGranularity(1000);

            Assert.That(granularity.Duration, Is.EqualTo(1000));
            Assert.That(granularity.Origin, Is.Null);
        }
Exemple #2
0
        public void Constructor_WithAllValues_PropertiesAreSet()
        {
            var origin      = DateTime.UtcNow;
            var granularity = new DurationGranularity(1000, origin);

            Assert.That(granularity.Duration, Is.EqualTo(1000));
            Assert.That(granularity.Origin, Is.EqualTo(origin));
        }
Exemple #3
0
        public void Constructor_TypeIsCorrect()
        {
            var granularity = new DurationGranularity(1000);

            Assert.That(granularity.Type, Is.EqualTo("duration"));
        }