Skip to content
| Marketplace
Sign in
Visual Studio>Templates>C++ WinRT Async UnitTestLibrary
C++ WinRT Async UnitTestLibrary

C++ WinRT Async UnitTestLibrary

Vikram Agrawal

|
5,969 installs
| (0) | Free
Unit Test Library project template with Async lib.
Download

Unit Test Library for Windows store apps with async helper library for C++.

Using helper library async calls can be converted into sync calls and used in Unit Testing.

E.g.

TEST_METHOD(TestMethod1)
{
    //Arrange
    Uri^ uri = ref new Uri("http://blogs.msdn.com/b/vikramagrawal/atom.aspx");
    AtomPubClient^ client = ref new AtomPubClient();
    auto count = std::make_shared<int>(0);

    //Act
    AsyncHelper::RunSynced(task<SyndicationFeed^>(client->RetrieveFeedAsync(uri)).then([count] (SyndicationFeed^ feed)
    {
        *count = feed->Items->Size;
    }));

    //Assert
    Assert::IsTrue(*count > 0);
}

Installing this extension will add project template to create project with helper library included.

Source for extension is checked in athttp://asynccppunittestlib.codeplex.com

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft