[Test] public void providing_empty_password_should_fail() { //Arrange //Act var exception = Assert.Throws <Exception>(() => User.SetPassword(string.Empty)); //Assert Assert.NotNull(exception); Assert.IsTrue(exception.Message.Equals("Password is incorrect.")); }