Archive

Posts Tagged ‘mstest’

MSTest fails to mention ignored tests

November 14, 2008 msujaws Leave a comment

The other day I was writing some unit tests for a project I was working on. At the time, these tests contained some credentials that I both didn’t want to check-in and also didn’t want to break the build at a later date if I ever changed my password.

The test looked like this:

[Test]
public void TestLogIn()
{
  var username = "j.wein";
  var password = "123456";

  var authenticated = Directory.Authenticate( username, password );

  Assert.IsTrue( authenticated );
}

Read more…