---
title: "Cheat Sheets for ASP.NET, Regex, Mock Objects and more"
url: "https://osherove.com/blog/2007/1/29/cheat-sheets-for-aspnet-regex-mock-objects-and-more.md"
canonical: "https://osherove.com/blog/2007/1/29/cheat-sheets-for-aspnet-regex-mock-objects-and-more.html"
published: "2007-01-29T16:30:12"
updated: "2007-01-29T16:30:12"
tags: [".NET", ".Net 2.0", "Agile"]
author: "Roy Osherove"
description: "Ah, I love cheat sheets! You can hang them up on a wall, and then look at them when you need to remember how to do something. Looks like there is some very thorough cheat sheets for regular expressions over here .(via…"
usage: "Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page)."
license: "https://creativecommons.org/licenses/by/4.0/"
---

# Cheat Sheets for ASP.NET, Regex, Mock Objects and more

By Roy Osherove January 29, 2007 In [.NET](https://osherove.com/blog/category/net), [.Net 2.0](https://osherove.com/blog/category/net-2-0), [Agile](https://osherove.com/blog/category/agile)

**Historical article** · Originally published January 29, 2007; technical details may be outdated.

Ah, I love cheat sheets!

You can hang them up on a wall, and then look at them when you need to remember how to do something.

Looks like there is some **very** thorough [cheat sheets for regular expressions over here](http://www.ilovejackdaniels.com/cheat-sheets/regular-expressions-cheat-sheet/).(via [Mike](http://www.larkware.com/dg7/TheDailyGrind1066.aspx)). You can use them along with Regular and Regulazy to do you Regex stuff.

There are lots [more Cheat sheets here](http://john-sheehan.com/blog/index.php/net-cheat-sheets/) for ASP.NET, CSS, HTML etc..

Now, here's something you'll find very helpful if you do unit testing with Mock Object frameworks such as NMock.

**Cheat sheets for Mock Object frameworks**

- [**NMock** 2 has a cheat sheet](http://nmock.org/cheatsheet.html) on how to use it's syntax.
-    [Here's an alternative one for NMock 2 in PDF](http://www.todyruik.com/blog/2005/07/19/nmock-2-quick-reference/).
- **JMock** [has a quick reference guide here](http://www.todyruik.com/blog/2005/07/07/jmock-quick-reference/).
- **[TypeMock](http://www.typemock.com/)** has two cheat sheets (currently in draft form).
    - [Reflective Mocks](http://files.osherove.com/TypeMockCheatSheet-Reflective.pdf)
    - [Natural Mocks](http://files.osherove.com/TypeMockCheatSheet.pdf)

If you know of other interesting cheat sheets for .NET, Unit testing or mock objects, feel free to post them as a comment. I will add the useful ones to the list.

**Update**:

- Just found [another cheat sheet (erm, command line reference) for TF.EXE](http://blogs.msdn.com/noahc/archive/2007/01/22/real-tfs-command-line-help.aspx) - the source control god of Team Foundation server, with which you can do practically anything, and only about 40% of it's functionality is exposed by the various GUI tools in VSTS. I've created a [more readable vestion of this document in Word Format here](http://files.osherove.com/TF%20Cheat%20Sheet.doc).

## More in .NET

[All posts in .NET](https://osherove.com/blog/category/net)

- Jan 29, 2007

    ### [Keyboard shortcuts posters and introducing Enso Launcher](https://osherove.com/blog/2007/1/29/keyboard-shortcuts-posters-and-introducing-enso-launcher.html)

- Jan 29, 2007

    ### [Prepare sourcesafe for the daylight time change in the U.S](https://osherove.com/blog/2007/1/29/prepare-sourcesafe-for-the-daylight-time-change-in-the-us.html)

- Jan 7, 2007

    ### [Shell MegaPack version 8.0 is out](https://osherove.com/blog/2007/1/7/shell-megapack-version-80-is-out.html)

- Dec 20, 2006

    ### [Team Data and the Database publishing wizard](https://osherove.com/blog/2006/12/20/team-data-and-the-database-publishing-wizard.html)


---

## About the author

**Roy Osherove**: Senior Solutions Architect at AWS working on AI for production and AI-driven development; author of The Art of Unit Testing and Elastic Leadership, with about 20 years of consulting and training on unit testing, TDD, team leadership and continuous delivery.

### Sites

- [RobotPaper](https://robotpaper.ai/): This blog: AI patterns and anti-patterns, AI and coding agents, and engineering leadership.
- [osherove.com](https://osherove.com): Roy's personal site. Author of The Art of Unit Testing and Elastic Leadership; consulting and training on unit testing, TDD, team leadership and continuous delivery, plus about 20 years of blog posts.
- [The Art of Unit Testing](https://www.artofunittesting.com): The Art of Unit Testing, 3rd Edition (Manning): readable, maintainable, trustworthy unit tests, plus TDD workshops in C#, JavaScript, Java and Kotlin.
- [5whys.com](https://www.5whys.com): Roy's writing on software team leadership: self-organizing teams, surviving chaos, learning mode and the Elastic Leadership model.
- [Pipeline Driven](https://pipelinedriven.org): Continuous delivery and DevOps practices: build patterns, pipeline-friendly testing, DevOps metrics and enterprise DevOps.
- [Elastic Leadership](https://www.elasticleadership.com): Elastic Leadership, Roy's framework for software team leaders (survival, learning and self-organizing modes).

### Social

- X: https://x.com/royosherove
- LinkedIn: https://www.linkedin.com/in/osherove/

### Contact

- Contact form: https://forms.gle/jQSx5KoXvrVA1JCK7

### License

Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page). License: https://creativecommons.org/licenses/by/4.0/
