Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit tests for Singleton Pattern #24

Open
chaurasia-amarjeet opened this issue Jul 25, 2021 · 2 comments
Open

Unit tests for Singleton Pattern #24

chaurasia-amarjeet opened this issue Jul 25, 2021 · 2 comments
Assignees

Comments

@chaurasia-amarjeet
Copy link

We should include unit tests for patterns, Singleton pattern should be easiest to start with.

@FunkyMonk8111
Copy link
Contributor

Was this already implemented? I see SingletonPatternTests.cs

@FunkyMonk8111
Copy link
Contributor

I'm finding this is difficult to implement. Start using this example but couldn't quite get it to work as expected - http://pvlerick.github.io/2017/03/how-to-get-rid-of-a-singleton.

According to this article, TDD and ultimately unit testing isn't recommend - https://dev.to/bacarpereira/don-t-use-singleton-pattern-in-your-unit-tests-8p7

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

No branches or pull requests

3 participants