New Release of Isolator++ for C++ developers

At Typemock, we are always improving our unit testing tools. Several months ago, we released the first version of Isolator++, a mocking framework for C++ developers. Isolator++ has helped C++ programmers test even the most problematic bits of C or C++ code.

We have just released a new version, Isolator++ 1.1.0.3, that incorporates many fixes.
In addition to various bug fixes, the following features were added:

  • Added API for faking out parameter – RET(outParam, sizeOfObject)
  • Added GUI for the configuration form when entering your license key

If you haven’t yet tried out Isolator++, download Isolator++ 1.1.0.3 now and let us know what you think.

Learn more about Isolator++ and unit testing in C++.

   1:  TEST_F(Tests, FakeOutParameterWithSize)
   2:  {
   3:                  ToFake* fake = FAKE<ToFake>();
   4:   
   5:                  int fakeBuf[] = {1,2,3};
   6:                  int size = sizeof(fakeBuf);
   7:   
   8:                  WHEN_CALLED(fake->Foo( RET(fakeBuf, size) ));
   9:   
  10:                  int arr[3];
  11:                  fake->Foo(arr); 
  12:                  ASSERT_EQ(arr[0], 1);
  13:                  ASSERT_EQ(arr[1], 2);
  14:                  ASSERT_EQ(arr[2], 3);
  15:  }
  16:   
TOP