title: Is it possible to check if shared pointer returns a nullptr in native unit test?
body: <p>Using Visual Studio 2012 native unit test, the code can't be compiled when using shared pointer.</p>
  
  <p>My code:</p>
  
  <pre><code>#include "stdafx.h"
  #include "CppUnitTest.h"
  #include "ParameterTest.h"
  
  using namespace Microsoft::VisualStudio::CppUnitTestFramework;
  using namespace MyParameter;
  
  namespace MyParameterTests
  {       
      TEST_CLASS(MyParameterTests)
      {
      public:
  
          TEST_METHOD(CheckParametersWithPathReturnsNotNull)
          {
              //Arrange
              Parameter parameter = Parameter();
  
              //Act
              std::shared_ptr&lt;std::string&gt; actual = parameter.CheckParameters("C:\\Parameter.db");
  
              //Assert
              Assert::IsNotNull(actual, L"Should not return null", LINE_INFO());
  
          }
  
      };
  }
  </code></pre>
  
  <p>Compiler eror:</p>
  
  <blockquote>
    <p>2>------ Rebuild All started: Project: MyParameterTests, Configuration: Debug Win32 ------
    2>  stdafx.cpp
    2>  ParameterTestTests.cpp
    2>c:\users\\documents\visual studio 2012\projects\myparametertests\parametertests.cpp(26): error C2784: 'void Microsoft::VisualStudio::CppUnitTestFramework::Assert::IsNotNull(const T *,const wchar_t *,const Microsoft::VisualStudio::CppUnitTestFramework::__LineInfo *)' : could not deduce template argument for 'const T *' from 'std::shared_ptr&lt;_Ty>'
    2>          with
    2>          [
    2>              _Ty=std::string
    2>          ]
    2>          c:\program files (x86)\microsoft visual studio 11.0\vc\unittest\include\cppunittestassert.h(259) : see declaration of 'Microsoft::VisualStudio::CppUnitTestFramework::Assert::IsNotNull'</p>
  </blockquote>