public void BooleanAttributeValue() { IAttributeValue <bool> attribute = AttributeValue <bool> .Create(true); attribute.Apply <object>((boolValue) => { Assert.True(boolValue); return(null); }); }
public void LongAttributeValue() { IAttributeValue <long> attribute = AttributeValue <long> .Create(123456L); attribute.Apply <object>((longValue) => { Assert.Equal(123456L, longValue); return(null); }); }
public void StringAttributeValue() { IAttributeValue <string> attribute = AttributeValue <string> .Create("MyStringAttributeValue"); attribute.Apply <object>((stringValue) => { Assert.Equal("MyStringAttributeValue", stringValue); return(null); }); }