You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# CA2225: Operator overloads have named alternates
19
19
@@ -32,12 +32,16 @@ By default, this rule only looks at externally visible types, but this is [confi
32
32
33
33
## Rule description
34
34
35
-
Operator overloading allows the use of symbols to represent computations for a type. For example, a type that overloads the plus symbol (+) for addition would typically have an alternative member named 'Add'. The named alternative member provides access to the same functionality as the operator, and is provided for developers who program in languages that do not support overloaded operators.
35
+
Operator overloading allows the use of symbols to represent computations for a type. For example, a type that overloads the plus symbol `+` for addition would typically have an alternative member named `Add`. The named alternative member provides access to the same functionality as the operator. It's provided for developers who program in languages that do not support overloaded operators.
36
36
37
-
This rule examines the operators listed in the following table.
|`HashEncoding`|Optional `String` parameter.<br /><br />The encoding to use for generated hashes. Defaults to `hex`. Allowed values = `hex`, `base64`.|
This topic lists the public members of the `Microsoft::VisualStudio::CppUnitTestFramework` namespace. Use these APIs to write C++ unit tests based on the Microsoft Native Unit Test Framework. There is a [Usage Example](#example) at the end of the topic.
14
14
15
-
The header files are located in the _VisualStudio2012[x86]InstallFolder_**\VC\UnitTest\include** folder.
16
-
17
-
The lib files are located in the _VisualStudio2012[x86]InstallFolder_**\VC\UnitTest\lib** folder.
15
+
The header and lib files are located under *\<Visual Studio installation folder>\VC\Auxiliary\VS\UnitTest*.
18
16
19
17
Header and lib paths are automatically configured in a Native Test project.
Copy file name to clipboardExpand all lines: docs/test/writing-unit-tests-for-c-cpp.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: "Write unit tests for C/C++"
3
3
description: Write C++ unit tests in Visual Studio using various test frameworks including CTest, Boost.Test and Google Test.
4
-
ms.date: 05/06/2019
4
+
ms.date: 09/27/2019
5
5
ms.topic: conceptual
6
6
ms.author: "mblome"
7
7
manager: markl
@@ -81,6 +81,8 @@ Next, in your unit test *.cpp* file, add an `#include` directive for any header
81
81
82
82

83
83
84
+
To avoid having to type the full path in each include statement in the source file, you can add the required folders in **Project** > **Properties** > **C/C++** > **General** > **Additional Include Directories**.
0 commit comments