Microsoft Fakes (Shims and / or Stubs) on a c# method with SQL code
问题 I am trying to learn a bit more about Unit Testing, using out-of-the-box functionality (i believe it is MSTest.exe), and Microsoft Fakes (stubs and Shims). I am using Visual Studio 2012 Ultimate and .Net 4.5 Framework. Given the following code that calls a stored procedure (SQL Server) which returns a single output value (for simplicity): public string GetSomeDatabaseValue() { string someValue = String.Empty; SqlParameter paramater = new SqlParameter(); paramater.ParameterName = "