Esempio n. 1
0
 public DHCPv6NumericValueScopeProperty(
     UInt16 optionIdentifier,
     Int64 value,
     NumericScopePropertiesValueTypes numericType,
     DHCPv6ScopePropertyType valueType) : base(optionIdentifier, valueType)
 {
     Value       = value;
     NumericType = numericType;
 }
Esempio n. 2
0
        public void Constructor(UInt16 optionIdentifier,
                                Int64 value,
                                NumericScopePropertiesValueTypes numericType,
                                DHCPv6ScopePropertyType valueType)
        {
            var property = new DHCPv6NumericValueScopeProperty(optionIdentifier, value, numericType, valueType);

            Assert.Equal(valueType, property.ValueType);
            Assert.Equal(optionIdentifier, property.OptionIdentifier);
            Assert.Equal(numericType, property.NumericType);
            Assert.Equal(value, property.Value);

            var otherProperty = DHCPv6NumericValueScopeProperty.FromRawValue(optionIdentifier, value.ToString(), numericType);

            Assert.Equal(property, otherProperty);
        }
Esempio n. 3
0
 public String GetName(DHCPv6ScopePropertyType property) => _localizer[property.ToString()];