# Code Review: Partial1

**URL:** <https://www.ruby-forum.com/t/code-review-partial1/140216>\
**Category:** IronRuby\
**Created:** [June 12, 2008, 12:02am UTC](https://www.ruby-forum.com/t/code-review-partial1/140216 "2008-06-12T00:02:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grujildo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Post date:** [June 12, 2008, 12:02am UTC](https://www.ruby-forum.com/t/code-review-partial1/140216/1 "2008-06-12T00:02:25Z")

</div>

tfpt review “/shelveset:Partial1;REDMOND\tomat”

Adds /partial mode to IronRuby unit tests. If specified, the harness  
will run tests in an app-domain that has restricted permissions.

Simple DLR changes:

Snippet assembly needs to be marked by SecurityTransparent attribute  
in order to work in partial trust.

Fixed TestAst - a handful of types were declared private yet  
referenced from generated code.

Ruby changes:

IronRuby assemblies were missing SecurityTransparent and  
AllowPartiallyTrustedCallers attributes.

Few tests access files, so they need to be excluded in partial trust.

Methods invoked via reflection need to be public.

Tomas
