How to write boost unit test in c++ in Visual Studio 2010

Hi All,

I'm new to c++ and boost library also. I need to test a function of my library.
For example

// Functions.hpp
int add(const int x, const int y);

//Functions.cpp
int add(const int x, const int y)
{
return (x + y);
}

Now i need to test add function using boost.
I need the result or output in below style. What all settings do i need to do in VS 2010 and how i should include boost test in the project.

==== Run unit tests ====
Running 2 test cases...
./mytest.cpp(13): error in "SimpleTestInMainTestingModule": check 1 == 2 failed
Test suite "Master Test Suite" failed with:
1 assertion out of 2 passed
1 assertion out of 2 failed
1 test case out of 2 passed
1 test case out of 2 failed
any help will be really helpful..
Topic archived. No new replies allowed.