Skip to content

Commit 9f7a90c

Browse files
authored
docs: rename mstest function docs (#367)
1 parent 0417080 commit 9f7a90c

File tree

2 files changed

+32
-32
lines changed

2 files changed

+32
-32
lines changed

docs/MsTestAnalyzer.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ This is a generated file, please edit src\FluentAssertions.Analyzers.FluentAsser
44

55
# MsTest Analyzer Docs
66

7-
- [BooleanAssertIsTrue](#scenario-booleanassertistrue) - `flag.Should().BeTrue();`
8-
- [BooleanAssertIsFalse](#scenario-booleanassertisfalse) - `flag.Should().BeFalse();`
9-
- [ObjectAssertIsNull](#scenario-objectassertisnull) - `obj.Should().BeNull();`
10-
- [ObjectAssertIsNotNull](#scenario-objectassertisnotnull) - `obj.Should().NotBeNull();`
11-
- [ReferenceTypeAssertIsInstanceOfType](#scenario-referencetypeassertisinstanceoftype) - `obj.Should().BeOfType<List<object>>();`
12-
- [ReferenceTypeAssertIsNotInstanceOfType](#scenario-referencetypeassertisnotinstanceoftype) - `obj.Should().NotBeOfType<List<object>>();`
7+
- [AssertIsTrue](#scenario-assertistrue) - `flag.Should().BeTrue();`
8+
- [AssertIsFalse](#scenario-assertisfalse) - `flag.Should().BeFalse();`
9+
- [AssertIsNull](#scenario-assertisnull) - `obj.Should().BeNull();`
10+
- [AssertIsNotNull](#scenario-assertisnotnull) - `obj.Should().NotBeNull();`
11+
- [AssertIsInstanceOfType](#scenario-assertisinstanceoftype) - `obj.Should().BeOfType<List<object>>();`
12+
- [AssertIsNotInstanceOfType](#scenario-assertisnotinstanceoftype) - `obj.Should().NotBeOfType<List<object>>();`
1313
- [AssertObjectAreEqual](#scenario-assertobjectareequal) - `obj1.Should().Be(obj2);`
1414
- [AssertOptionalIntegerAreEqual](#scenario-assertoptionalintegerareequal) - `number1.Should().Be(number2);`
1515
- [AssertOptionalIntegerAndNullAreEqual](#scenario-assertoptionalintegerandnullareequal) - `number.Should().BeNull();`
@@ -47,7 +47,7 @@ This is a generated file, please edit src\FluentAssertions.Analyzers.FluentAsser
4747

4848
## Scenarios
4949

50-
### scenario: BooleanAssertIsTrue
50+
### scenario: AssertIsTrue
5151

5252
```cs
5353
// arrange
@@ -72,7 +72,7 @@ Assert.IsTrue(flag); /* fail message: Assert.IsTrue failed. */
7272
flag.Should().BeTrue(); /* fail message: Expected flag to be true, but found False. */
7373
```
7474

75-
### scenario: BooleanAssertIsFalse
75+
### scenario: AssertIsFalse
7676

7777
```cs
7878
// arrange
@@ -97,7 +97,7 @@ Assert.IsFalse(flag); /* fail message: Assert.IsFalse failed. */
9797
flag.Should().BeFalse(); /* fail message: Expected flag to be false, but found True. */
9898
```
9999

100-
### scenario: ObjectAssertIsNull
100+
### scenario: AssertIsNull
101101

102102
```cs
103103
// arrange
@@ -122,7 +122,7 @@ Assert.IsNull(obj); /* fail message: Assert.IsNull failed. */
122122
obj.Should().BeNull(); /* fail message: Expected obj to be <null>, but found "foo". */
123123
```
124124

125-
### scenario: ObjectAssertIsNotNull
125+
### scenario: AssertIsNotNull
126126

127127
```cs
128128
// arrange
@@ -147,7 +147,7 @@ Assert.IsNotNull(obj); /* fail message: Assert.IsNotNull failed. */
147147
obj.Should().NotBeNull(); /* fail message: Expected obj not to be <null>. */
148148
```
149149

150-
### scenario: ReferenceTypeAssertIsInstanceOfType
150+
### scenario: AssertIsInstanceOfType
151151

152152
```cs
153153
// arrange
@@ -174,7 +174,7 @@ Assert.IsInstanceOfType<List<object>>(obj); /* fail message: Assert.IsInstanceOf
174174
obj.Should().BeOfType<List<object>>(); /* fail message: Expected type to be System.Collections.Generic.List`1[[System.Object, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], but found System.Collections.Generic.List`1[[System.Int32, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]. */
175175
```
176176

177-
### scenario: ReferenceTypeAssertIsNotInstanceOfType
177+
### scenario: AssertIsNotInstanceOfType
178178

179179
```cs
180180
// arrange

src/FluentAssertions.Analyzers.FluentAssertionAnalyzerDocs/MsTestAnalyzerTests.cs

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace FluentAssertions.Analyzers.FluentAssertionAnalyzerDocs;
1212
public class MsTestAnalyzerTests
1313
{
1414
[TestMethod]
15-
public void BooleanAssertIsTrue()
15+
public void AssertIsTrue()
1616
{
1717
// arrange
1818
var flag = true;
@@ -25,7 +25,7 @@ public void BooleanAssertIsTrue()
2525
}
2626

2727
[TestMethod, ExpectedException(typeof(AssertFailedException))]
28-
public void BooleanAssertIsTrue_Failure_OldAssertion()
28+
public void AssertIsTrue_Failure_OldAssertion()
2929
{
3030
// arrange
3131
var flag = false;
@@ -35,7 +35,7 @@ public void BooleanAssertIsTrue_Failure_OldAssertion()
3535
}
3636

3737
[TestMethod, ExpectedException(typeof(AssertFailedException))]
38-
public void BooleanAssertIsTrue_Failure_NewAssertion()
38+
public void AssertIsTrue_Failure_NewAssertion()
3939
{
4040
// arrange
4141
var flag = false;
@@ -45,7 +45,7 @@ public void BooleanAssertIsTrue_Failure_NewAssertion()
4545
}
4646

4747
[TestMethod]
48-
public void BooleanAssertIsFalse()
48+
public void AssertIsFalse()
4949
{
5050
// arrange
5151
var flag = false;
@@ -58,7 +58,7 @@ public void BooleanAssertIsFalse()
5858
}
5959

6060
[TestMethod, ExpectedException(typeof(AssertFailedException))]
61-
public void BooleanAssertIsFalse_Failure_OldAssertion()
61+
public void AssertIsFalse_Failure_OldAssertion()
6262
{
6363
// arrange
6464
var flag = true;
@@ -68,7 +68,7 @@ public void BooleanAssertIsFalse_Failure_OldAssertion()
6868
}
6969

7070
[TestMethod, ExpectedException(typeof(AssertFailedException))]
71-
public void BooleanAssertIsFalse_Failure_NewAssertion()
71+
public void AssertIsFalse_Failure_NewAssertion()
7272
{
7373
// arrange
7474
var flag = true;
@@ -78,7 +78,7 @@ public void BooleanAssertIsFalse_Failure_NewAssertion()
7878
}
7979

8080
[TestMethod]
81-
public void ObjectAssertIsNull()
81+
public void AssertIsNull()
8282
{
8383
// arrange
8484
object obj = null;
@@ -91,7 +91,7 @@ public void ObjectAssertIsNull()
9191
}
9292

9393
[TestMethod, ExpectedException(typeof(AssertFailedException))]
94-
public void ObjectAssertIsNull_Failure_OldAssertion()
94+
public void AssertIsNull_Failure_OldAssertion()
9595
{
9696
// arrange
9797
var obj = "foo";
@@ -101,7 +101,7 @@ public void ObjectAssertIsNull_Failure_OldAssertion()
101101
}
102102

103103
[TestMethod, ExpectedException(typeof(AssertFailedException))]
104-
public void ObjectAssertIsNull_Failure_NewAssertion()
104+
public void AssertIsNull_Failure_NewAssertion()
105105
{
106106
// arrange
107107
var obj = "foo";
@@ -111,7 +111,7 @@ public void ObjectAssertIsNull_Failure_NewAssertion()
111111
}
112112

113113
[TestMethod]
114-
public void ObjectAssertIsNotNull()
114+
public void AssertIsNotNull()
115115
{
116116
// arrange
117117
var obj = new object();
@@ -124,7 +124,7 @@ public void ObjectAssertIsNotNull()
124124
}
125125

126126
[TestMethod, ExpectedException(typeof(AssertFailedException))]
127-
public void ObjectAssertIsNotNull_Failure_OldAssertion()
127+
public void AssertIsNotNull_Failure_OldAssertion()
128128
{
129129
// arrange
130130
object obj = null;
@@ -134,7 +134,7 @@ public void ObjectAssertIsNotNull_Failure_OldAssertion()
134134
}
135135

136136
[TestMethod, ExpectedException(typeof(AssertFailedException))]
137-
public void ObjectAssertIsNotNull_Failure_NewAssertion()
137+
public void AssertIsNotNull_Failure_NewAssertion()
138138
{
139139
// arrange
140140
object obj = null;
@@ -144,7 +144,7 @@ public void ObjectAssertIsNotNull_Failure_NewAssertion()
144144
}
145145

146146
[TestMethod]
147-
public void ReferenceTypeAssertIsInstanceOfType()
147+
public void AssertIsInstanceOfType()
148148
{
149149
// arrange
150150
var obj = new List<object>();
@@ -158,7 +158,7 @@ public void ReferenceTypeAssertIsInstanceOfType()
158158
}
159159

160160
[TestMethod, ExpectedException(typeof(AssertFailedException))]
161-
public void ReferenceTypeAssertIsInstanceOfType_Failure_OldAssertion_0()
161+
public void AssertIsInstanceOfType_Failure_OldAssertion_0()
162162
{
163163
// arrange
164164
var obj = new List<int>();
@@ -168,7 +168,7 @@ public void ReferenceTypeAssertIsInstanceOfType_Failure_OldAssertion_0()
168168
}
169169

170170
[TestMethod, ExpectedException(typeof(AssertFailedException))]
171-
public void ReferenceTypeAssertIsInstanceOfType_Failure_OldAssertion_1()
171+
public void AssertIsInstanceOfType_Failure_OldAssertion_1()
172172
{
173173
// arrange
174174
var obj = new List<int>();
@@ -178,7 +178,7 @@ public void ReferenceTypeAssertIsInstanceOfType_Failure_OldAssertion_1()
178178
}
179179

180180
[TestMethod, ExpectedException(typeof(AssertFailedException))]
181-
public void ReferenceTypeAssertIsInstanceOfType_Failure_NewAssertion()
181+
public void AssertIsInstanceOfType_Failure_NewAssertion()
182182
{
183183
// arrange
184184
var obj = new List<int>();
@@ -188,7 +188,7 @@ public void ReferenceTypeAssertIsInstanceOfType_Failure_NewAssertion()
188188
}
189189

190190
[TestMethod]
191-
public void ReferenceTypeAssertIsNotInstanceOfType()
191+
public void AssertIsNotInstanceOfType()
192192
{
193193
// arrange
194194
var obj = new List<int>();
@@ -202,7 +202,7 @@ public void ReferenceTypeAssertIsNotInstanceOfType()
202202
}
203203

204204
[TestMethod, ExpectedException(typeof(AssertFailedException))]
205-
public void ReferenceTypeAssertIsNotInstanceOfType_Failure_OldAssertion_0()
205+
public void AssertIsNotInstanceOfType_Failure_OldAssertion_0()
206206
{
207207
// arrange
208208
var obj = new List<object>();
@@ -212,7 +212,7 @@ public void ReferenceTypeAssertIsNotInstanceOfType_Failure_OldAssertion_0()
212212
}
213213

214214
[TestMethod, ExpectedException(typeof(AssertFailedException))]
215-
public void ReferenceTypeAssertIsNotInstanceOfType_Failure_OldAssertion_1()
215+
public void AssertIsNotInstanceOfType_Failure_OldAssertion_1()
216216
{
217217
// arrange
218218
var obj = new List<object>();
@@ -222,7 +222,7 @@ public void ReferenceTypeAssertIsNotInstanceOfType_Failure_OldAssertion_1()
222222
}
223223

224224
[TestMethod, ExpectedException(typeof(AssertFailedException))]
225-
public void ReferenceTypeAssertIsNotInstanceOfType_Failure_NewAssertion()
225+
public void AssertIsNotInstanceOfType_Failure_NewAssertion()
226226
{
227227
// arrange
228228
var obj = new List<object>();

0 commit comments

Comments
 (0)