Question: Write a C# method with this signature and submit the .cs file: public static ArrayList Union(ArrayList a, ArrayList b) The method should return a list

Write a C# method with this signature and submit the .cs file:

public static ArrayList Union(ArrayList a, ArrayList b)

The method should return a list of objects that are in either of the two argument vectors.

You'll use this program to answer questions in a subsequent exercise.

  1. You may discover a variety of ambiguities in the assignment. In other words, ample opportunities for defects exist. Describe as many possible defects as you can. Submit either a text file or a Word doc. (8 points)

  1. Create a set of test cases that you think would have a reasonable chance of revealing the faults you identified above and document the rationale in your test set as inline comments. (Note: you don't have to use a test framework for this. Just put your test code in Main() and call the Union method for each test. Print "test passed" or "test failed" for each test. Submit a .cs file including the Main() method with tests and the Union method. (12 points)
  2. (recommended) Run your tests with your implementation to ensure you get the expected results.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!