diff options
author | Paul Wilkinson <paul.wilkinson@cantab.net> | 2016-02-21 15:52:09 +0000 |
---|---|---|
committer | Paul Wilkinson <paul.wilkinson@cantab.net> | 2016-02-21 15:52:09 +0000 |
commit | 83d3b47acf8ab7ca010cacd9bc9f06bcabe69c38 (patch) | |
tree | 7cd07122db9c110006ffb17db02041ff84d5b699 /googlemock/docs/v1_5/ForDummies.md | |
parent | 77d6b173380332b1c1bc540532641f410ec82d65 (diff) | |
download | googletest-83d3b47acf8ab7ca010cacd9bc9f06bcabe69c38.tar.gz googletest-83d3b47acf8ab7ca010cacd9bc9f06bcabe69c38.tar.bz2 googletest-83d3b47acf8ab7ca010cacd9bc9f06bcabe69c38.zip |
Fix formatting in AdvancedGuide.md
Put occurrences of "#include" in a code span so they are not interpreted
as headers.
Other documents were not broken because the #include was not at the
start of the line, but put them in code spans anyway just in case the
text gets refilled in the future.
Diffstat (limited to 'googlemock/docs/v1_5/ForDummies.md')
-rw-r--r-- | googlemock/docs/v1_5/ForDummies.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/googlemock/docs/v1_5/ForDummies.md b/googlemock/docs/v1_5/ForDummies.md index f389606c..fcc3b561 100644 --- a/googlemock/docs/v1_5/ForDummies.md +++ b/googlemock/docs/v1_5/ForDummies.md @@ -44,7 +44,7 @@ We encourage you to use Google Mock as: * a _testing_ tool to cut your tests' outbound dependencies and probe the interaction between your module and its collaborators. # Getting Started # -Using Google Mock is easy! Inside your C++ source file, just #include `<gtest/gtest.h>` and `<gmock/gmock.h>`, and you are ready to go. +Using Google Mock is easy! Inside your C++ source file, just `#include` `<gtest/gtest.h>` and `<gmock/gmock.h>`, and you are ready to go. # A Case for Mock Turtles # Let's look at an example. Suppose you are developing a graphics program that relies on a LOGO-like API for drawing. How would you test that it does the right thing? Well, you can run it and compare the screen with a golden screen snapshot, but let's admit it: tests like this are expensive to run and fragile (What if you just upgraded to a shiny new graphics card that has better anti-aliasing? Suddenly you have to update all your golden images.). It would be too painful if all your tests are like this. Fortunately, you learned about Dependency Injection and know the right thing to do: instead of having your application talk to the drawing API directly, wrap the API in an interface (say, `Turtle`) and code to that interface: |