'C# MStest sad flow Unit test error with System.ArgumentException

I'm trying to make a sad flow uniting testing. It keeps failing in the way I am expecting it to be. What is the problem what my code or test? The error message shows

Test method threw exception System.ArgumentException, but exception Microsoft.VisualStudio.TestTools.UnitTesting.UnitTestAssertException was expected. Exception message: System.ArgumentException: You have to put an password



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source