Challenge 42 – You Complete Me
Challenge 42 involved writing all the code necessary to make the class compilable and runnable WITHOUT altering the class and file in any way.
Given the following class, write all the code necessary to make the class compilable and runnable WITHOUT altering the class and file in any way.
The following code will be used as a test harness to make sure the code above compiles and executes correctly.
- Write all the code necessary to make the class compilable and runnable WITHOUT altering the class in any way.
- Winner will be judged on accuracy and completeness of the solution.
Winners (out of approximately 15 respondents)
Thanks to everybody for your responses to SCS Coding Challenge #42!!!
Congratulations to Allison Benneth for her fine efforts to come up with a workable solution.
|Name||Prize Winner||Good Answer|
Monthly Programming Tidbits
1. Write Unit Test for Non-Public Methods
Many developers do not write unit test methods for non-public assemblies. This is because they are invisible to the test project. C# enables one to enhance visibility between the assembly internals and other assemblies. The trick is to include //Make the internals visible to the test assembly [assembly: InternalsVisibleTo(“MyTestAssembly”)] in the AssemblyInfo.cs file or in the file under test.
Coding Challenge #43
Please stay tuned, SCS Coding Challenge #43 will be published this week. Details will follow. The winner will be awarded based upon the best approach.