-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
119 lines (109 loc) · 5.51 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FakeItEasy - It's faking amazing</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/pure/0.2.1/pure-min.css">
<link rel="stylesheet" href="css/fakeiteasy.css">
<link rel="stylesheet" href="css/syntax.css">
<link href="https://fonts.googleapis.com/css?family=Ubuntu:400,700" rel="stylesheet" type="text/css">
<link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.png">
<link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="/favicon-194x194.png" sizes="194x194">
<link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="/android-chrome-192x192.png" sizes="192x192">
<link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="/android-chrome-manifest.json">
<meta name="msapplication-TileColor" content="#9f00a7">
<meta name="msapplication-TileImage" content="/mstile-144x144.png">
<meta name="theme-color" content="#ffffff">
<script
src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/highlight.min.js"
integrity="sha512-gU7kztaQEl7SHJyraPfZLQCNnrKdaQi5ndOyt4L4UPL/FHDd/uB9Je6KDARIqwnNNE27hnqoWLBq+Kpe4iHfeQ=="
crossorigin="anonymous"
referrerpolicy="no-referrer">
</script>
<script>hljs.highlightAll();</script>
</head>
<body>
<div class="splash">
<img src="img/fakeiteasy_logo_512.png" alt="FakeItEasy logo" width="256px">
<h2>The easy mocking library for .NET</h2>
</div>
<div class="content">
<div class="pure-g-r section">
<div class="pure-u-2-3">
<figure class="highlight">
<pre><code>// Creating a fake object is just dead easy!
// No mocks, no stubs, everything's a fake!
var lollipop = A.Fake<ICandy>();
var shop = A.Fake<ICandyShop>();
// Easily set up a call to return a value
A.CallTo(() => shop.GetTopSellingCandy()).Returns(lollipop);
// Use your fake as you would an instance of the faked type.
var developer = new SweetTooth();
developer.BuyTastiestCandy(shop);
// Asserting uses the same syntax as configuring calls.
// There's no need to learn another syntax.
A.CallTo(() => shop.BuyCandy(lollipop)).MustHaveHappened();</pre></code>
</figure>
</div>
<div class="pure-u-1-3">
<h3>A .Net dynamic fake framework for creating all types of fake objects, mocks, stubs etc.</h3>
<ul>
<li>Easier semantics: all fake objects are just that — fakes. Usage determines whether they're mocks or stubs.</li>
<li>Context-aware fluent interface guides the developer</li>
<li>Easy to use and compatible with both C# and VB.Net.</li>
</ul>
</div>
</div>
<div class="pure-g-r section">
<div class="pure-u-1">
<h3>Additional Features</h3>
<div class="pure-g-r">
<div class="pure-u-1-2">
<ul>
<li>every faked instance looks and feels like an instance of the faked type</li>
<li>helpful exception messages identify where a test went wrong</li>
<li>raising events from faked objects</li>
<li>explicit assertions, stated at the end of the test</li>
</ul>
</div>
<div class="pure-u-1-2">
<ul>
<li>type-safe faking of classes that require constructor arguments</li>
<li>automatic generation of dummy constructor arguments, if desired</li>
<li>extensible facilities for fake and dummy creation and argument formatting</li>
</ul>
</div>
</div>
</div>
</div>
<div class="navigation">
<a id="button-quickstart" class="pure-button" href="docs/stable/quickstart/">Quickstart</a>
<a id="button-docs" class="pure-button" href="docs/">Documentation</a>
<a id="button-chat" class="pure-button" href="https://gitter.im/FakeItEasy/FakeItEasy">Chat</a>
<a id="button-project" class="pure-button" href="https://github.com/FakeItEasy/FakeItEasy">Source</a>
<a id="button-nuget" class="pure-button" href="https://www.nuget.org/profiles/FakeItEasy">Packages</a>
<a id="button-twitter" class="pure-button" href="https://twitter.com/fakeiteasyfx">Twitter</a>
</div>
</div>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-JRX9PDD4KP"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-JRX9PDD4KP');
</script>
</body>
</html>