Skip to content

Added object identity test - #83

Open
Ujjwal Chadha (ujjwalchadha) wants to merge 3 commits into
mainfrom
ujjwalchadha/test_objectidentity
Open

Added object identity test#83
Ujjwal Chadha (ujjwalchadha) wants to merge 3 commits into
mainfrom
ujjwalchadha/test_objectidentity

Conversation

@ujjwalchadha

Copy link
Copy Markdown
Contributor

No description provided.

const testObject = new TestComponent.TestObject(2);
const testObjectAsSerializable = testObject.asSerializable();
assert.equal(testObject, testObjectAsSerializable);
});

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With WinRT objects, assert.equal doesn't quite work as you'd expect. Instead do an assert.isTrue(lhs == rhs);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW it tries to do property comparison instead of pointer comparison IIRC

@dunhor Duncan Horn (dunhor) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

interface ISerializable
{
String Serialize();
};

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
};
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants