HasDefaultIdentifierValue() public method

public HasDefaultIdentifierValue ( object instance ) : bool
instance object
return bool
コード例 #1
0
        public void HasDefaultIdentifierValueThrowsNotSupportedException()
        {
            var objectInfo = new TupleObjectInfo();

            var exception = Assert.Throws<NotSupportedException>(
                () => objectInfo.HasDefaultIdentifierValue(Tuple.Create(1)));

            Assert.Equal(exception.Message, ExceptionMessages.TupleObjectInfo_NotSupportedReason);
        }