<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -23,7 +23,7 @@ JS.Test.Unit.extend({
      * block yields `true`.
      **/
     assertBlock: function(message, block, context) {
-      this._wrapAssertion(function() {
+      this.__wrapAssertion__(function() {
         if (!block.call(context || null))
           throw new JS.Test.Unit.AssertionFailedError(message || 'assertBlock failed.');
       });
@@ -44,7 +44,7 @@ JS.Test.Unit.extend({
      * Asserts that `bool` is not falsey.
      **/
     assert: function(bool, message) {
-      this._wrapAssertion(function() {
+      this.__wrapAssertion__(function() {
         this.assertBlock(this.buildMessage(message, &quot;&lt;?&gt; is not true.&quot;, bool),
                          function() { return bool });
       });
@@ -109,7 +109,7 @@ JS.Test.Unit.extend({
      * Passes if `object` is a kind of `klass`.
      **/
     assertKindOf: function(klass, object, message) {
-      this._wrapAssertion(function() {
+      this.__wrapAssertion__(function() {
         var fullMessage = this.buildMessage(message, &quot;&lt;?&gt; expected to be an instance of\n&quot; +
                                                      &quot;&lt;?&gt; but was\n&quot; +
                                                      &quot;&lt;?&gt;.&quot;,
@@ -124,7 +124,7 @@ JS.Test.Unit.extend({
      * Passes if `object` responds to `method`.
      **/
     assertRespondTo: function(object, method, message) {
-      this._wrapAssertion(function() {
+      this.__wrapAssertion__(function() {
         var fullMessage = this.buildMessage('', &quot;&lt;?&gt;\ngiven as the method name argument to #assertRespondTo must be a String.&quot;, method);
         
         this.assertBlock(fullMessage, function() { return typeof method === 'string' });
@@ -145,7 +145,7 @@ JS.Test.Unit.extend({
      * Passes if `string` matches `pattern`.
      **/
     assertMatch: function(pattern, string, message) {
-      this._wrapAssertion(function() {
+      this.__wrapAssertion__(function() {
         var fullMessage = this.buildMessage(message, &quot;&lt;?&gt; expected to match\n&lt;?&gt;.&quot;, string, pattern);
         this.assertBlock(fullMessage, function() { return pattern.test(string) });
       });
@@ -157,7 +157,7 @@ JS.Test.Unit.extend({
      * Passes if `string` does not match `pattern`.
      **/
     assertNoMatch: function(pattern, string, message) {
-      this._wrapAssertion(function() {
+      this.__wrapAssertion__(function() {
         var fullMessage = this.buildMessage(message, &quot;&lt;?&gt; expected not to match\n&lt;?&gt;.&quot;, string, pattern);
         this.assertBlock(fullMessage, function() { return !pattern.test(string) });
       });
@@ -194,7 +194,7 @@ JS.Test.Unit.extend({
      * within `delta` tolerance.
      **/
     assertInDelta: function(expected, actual, delta, message) {
-      this._wrapAssertion(function() {
+      this.__wrapAssertion__(function() {
         this.assertKindOf('number', expected);
         this.assertKindOf('number', actual);
         this.assertKindOf('number', delta);
@@ -223,7 +223,7 @@ JS.Test.Unit.extend({
      * * Arguments to the method
      **/
     assertSend: function(sendArray, message) {
-      this._wrapAssertion(function() {
+      this.__wrapAssertion__(function() {
         this.assertKindOf(Array, sendArray, &quot;assertSend requires an array of send information&quot;);
         this.assert(sendArray.length &gt;= 2, &quot;assertSend requires at least a receiver and a message name&quot;);
         var fullMessage = this.buildMessage(message, &quot;&lt;?&gt; expected to respond to\n&quot; +
@@ -250,15 +250,15 @@ JS.Test.Unit.extend({
       return new JS.Test.Unit.Assertions.AssertionMessage(head, template, args);
     },
     
-    _wrapAssertion: function(block) {
-      if (this._assertionWrapped === undefined) this._assertionWrapped = false;
-      if (!this._assertionWrapped) {
-        this._assertionWrapped = true;
+    __wrapAssertion__: function(block) {
+      if (this.__assertionWrapped__ === undefined) this.__assertionWrapped__ = false;
+      if (!this.__assertionWrapped__) {
+        this.__assertionWrapped__ = true;
         try {
           this.addAssertion();
           return block.call(this);
         } finally {
-          this._assertionWrapped = false;
+          this.__assertionWrapped__ = false;
         }
       } else {
         return block.call(this);</diff>
      <filename>source/test/assertions.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>846f169459b6a5a9419be7d571d3852b0afcc645</id>
    </parent>
  </parents>
  <author>
    <name>James Coglan</name>
    <email>jcoglan@googlemail.com</email>
  </author>
  <url>http://github.com/jcoglan/js.class/commit/d13ca286309295b898eb7acb86a140376b9da6dc</url>
  <id>d13ca286309295b898eb7acb86a140376b9da6dc</id>
  <committed-date>2009-07-05T08:32:25-07:00</committed-date>
  <authored-date>2009-07-05T08:32:25-07:00</authored-date>
  <message>Don't use compressible private names in Test.Unit.Assertions as they may conflict with user code that mixes in the module.</message>
  <tree>4b14382aaca80e915931160e78b54bd688021d8a</tree>
  <committer>
    <name>James Coglan</name>
    <email>jcoglan@googlemail.com</email>
  </committer>
</commit>
