public void GetIdentifierValueThrowsNotSupportedException() { var objectInfo = new ExpandoObjectInfo(); var exception = Assert.Throws <NotSupportedException>( () => objectInfo.GetIdentifierValue(new ExpandoObject())); Assert.Equal(exception.Message, ExceptionMessages.ExpandoObjectInfo_NotSupportedReason); }