Comparison: C#, IronPython, and Boo

We will be using Mono in these examples. Mono is an open source implementation of the Microsoft .NET architecture.

Attached to this wiki page is a file named QAExercise.dll. It is a .NET assembly that contains a class named Calculator, which is in the QAExercise namespace.

Calculator has the following methods:

  • public int Add(string num1, string num2)
  • public int Add(int num1, int num2)
  • public int Subtract(int num1, int num2)
  • public int Divide(int num1, int num2)
  • public int Multiply(int num1, int num2)
  • public bool And(int num1, int num2)
  • public bool Or(int num1, int num2)
  • public string ToHexString(int num1)

There are at least 4 known bugs in this code. Say you are faced with a problem:

Deliver an application that uses the QAExercise.dll assembly. The application should run on the Mono platform, and the application's output should show the Calculator assembly being exercised. The output should have some kind of indication that a bug was found along with where the bug was found and how.

This page contains examples that could help you get started in several languages that can be used with the Mono platform.

Add a New Comment
or Sign in as Wikidot user
(will not be published)
- +
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution 3.0 License