| 1 |
// Copyright (c) Microsoft. All rights reserved. |
| 2 |
// Licensed under the MIT license. See LICENSE file in the project root for full license information. |
| 3 |
|
| 4 |
#ifndef MICROMOCCKTESTRUNNERHOOKS_H |
| 5 |
#define MICROMOCCKTESTRUNNERHOOKS_H |
| 6 |
|
| 7 |
#pragma once |
| 8 |
|
| 9 |
#ifndef MOCK_ASSERT |
| 10 |
|
| 11 |
#include "stdafx.h" |
| 12 |
#include "testrunnerswitcher.h" |
| 13 |
|
| 14 |
#define MOCK_ASSERT(expected, actual, assertString) ASSERT_ARE_EQUAL((expected), (actual), (assertString)) |
| 15 |
#define MOCK_FAIL(expression) ASSERT_FAIL(expression) |
| 16 |
|
| 17 |
#define MOCK_THROW(mockException) throw(mockException) |
| 18 |
|
| 19 |
#else // MOCK_ASSERT |
| 20 |
#define MOCK_THROW(...) |
| 21 |
#endif // MOCK_ASSERT |
| 22 |
|
| 23 |
#endif // MICROMOCCKTESTRUNNERHOOKS_H |