Click here to Skip to main content
15,884,913 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello there,
I need some feedback about my implementation of custom queue.
This is the code in pastebin- Create Custom Queue - Pastebin.com[^]

What I have tried:

I don't know any unit tests, because they are in the next course, but I created some own test cases. On my machine everything is working correctly.
Posted
Updated 16-Feb-21 9:31am
Comments
Richard MacCutchan 16-Feb-21 15:11pm    
If you can paste the code into PasteBin, you could just as easily paste it here in your question, so people can read it directly.

You could use the Array.Copy Method[^] instead of using loops to copy arrays.
Might not make much of a performance impact, but would make the code more compact.

I'm not a big fan of Unit Testing, but this article might get you started:
You Still Don’t Know How to Do Unit Testing (and Your Secret is Safe with Me) – Stackify[^]
 
Share this answer
 
v2
RickZeeland
,
thanks for your feedback!
I will replace all my for loops with Array.Copy.
Thanks and for this article. This is very useful information about unit tests!
All the best!
 
Share this answer
 
Comments
Richard Deeming 17-Feb-21 6:25am    
If you want to reply to a solution, click the "Have a Question or Comment?" button under that solution and post a comment.

Do not post your comment as a new "solution".

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900