Skip to the content.

C++

The following readme describes the coding conventions especially for C++.

Visual Studio Settings can be found here

Naming

New Lines and Blocks

As per Microsoft Coding Guidelines each brace gets a new line

Unit Tests

We use Google Test

Before & After test example for the class FooBar

namespace aist {
namespace garden {

class FooBarTest : public ::testing::Test {
public:
    FooBarTest(){}
    ~FooBarTest(){}

    void SetUp() {
        // some setup before each test
    }

    void TearDown(){
        // clean up
    }
private:
    ...
};

TEST_F(FooBarTest, create) {
    aist::foo::Bar b("Hello");

    ASSERT_EQ("Hello", b.getName());
}
}
}

Repo Architecture