The only comment is to use Assert.AreEqual instead of Assert.IsTrue :
Assert.IsAreEqual("50000", RemoveDash("50-00-0"));
The reason for this is that if the test fails, the error message you receive describes in more detail what was supposed to happen and what actually happened. A message that says "Expected Value <50,000>, but actually <50-00-0>" is much better than "Expected Value", but it was false.
As a rule, whenever you want to use Assert.IsTrue , go through the Assert methods and see if there is a better way to check your expectation (for example, Assert.IsInstanceOfType , Assert.IsNotNull , etc.) ..
Igor Zevaka
source share