Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3284846
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:12:01+00:00 2026-05-17T20:12:01+00:00

Seems like it would be a good way to introduce some people to unit

  • 0

Seems like it would be a good way to introduce some people to unit testing.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T20:12:02+00:00Added an answer on May 17, 2026 at 8:12 pm

    Well for one thing, the documentation for doctest talks about “interactive Python sessions”. There’s no equivalent of that in C#… so how would the output be represented? How would you perform all the necessary setup?

    I dare say such a thing would be possible, but personally I think that at least for C#, it’s clearer to have unit tests as unit tests, where you have all the benefits of the fact that you’re writing code rather than comments. The code can be checked for syntactic correctness at compile-time, you have IntelliSense, syntax highlighting, debugger support etc.

    If you’re writing code, why not represent that as code? Admittedly it’s reasonably common to include sample code in XML documentation, but that’s rarely in the form of tests – and without an equivalent of an “interactive session” it would require an artificial construct to represent the output in a testable form.

    I’m not saying this is a bad feature in Python – just that it’s one which I don’t believe maps over to C# particularly well. Languages have their own styles, and not every feature in language X will make sense in language Y.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It seems like it would be a good idea to completely stop people from
Seems like it would be better if you did commit followed by merge. I'm
This seems like it would be fairly simple, but I've been unable to find
This seems like it would be a common issue to be but I don't
So I have a Rails app (which in this case seems like it would
Executor seems like a clean abstraction. When would you want to use Thread directly
I have an entity and it seems like using DateTime as the Id would
I would like to step through Ruby code at runtime, but it seems difficult
I would like to tile a CGImage across a CALayer, but it seems to
I would like to animate a ScatterView Control using Expression Blend However, it seems

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.