Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

chore: added DCL NSubstitute package + PrivateChat Implementation #1383

Merged
merged 3 commits into from
Oct 6, 2020

Conversation

AjimenezDCL
Copy link
Contributor

@AjimenezDCL AjimenezDCL commented Oct 5, 2020

Adding NSubstitue and converting one of our tests as an example.

The NSubstitute fork we are using is located here https://github.com/decentraland/Unity3D-NSubstitute. You can take a look at the cdd11bb74398afae73e71b6fe01114f597a6ce08 commit for a more generic example of use.

Said generic example can also be checked within Unity:
image

@github-actions
Copy link

github-actions bot commented Oct 5, 2020

@AjimenezDCL AjimenezDCL self-assigned this Oct 5, 2020
@@ -11,6 +11,14 @@ public enum Type
SYSTEM
}

public ChatMessage() { }
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is it necessary to create an empty constructor? Is it only for standard conventions? or is it being used in some place?

Copy link
Contributor Author

@AjimenezDCL AjimenezDCL Oct 6, 2020

Choose a reason for hiding this comment

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

So we can use object initializers like new ChatMessage { messageType = "type" } ;

@AjimenezDCL AjimenezDCL merged commit 8be4396 into master Oct 6, 2020
@AjimenezDCL AjimenezDCL deleted the chore/1362_nsubstitute branch October 6, 2020 13:54
This was referenced Oct 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants