Skip to content

Commit 55a6047

Browse files
author
rstam
committed
Removed extra blank lines and replaced hard tabs with spaces.
1 parent 0e636da commit 55a6047

File tree

6 files changed

+17
-21
lines changed

6 files changed

+17
-21
lines changed

MongoDB.Bson/Serialization/Serializers/DateTimeOffsetSerializer.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
namespace MongoDB.Bson.Serialization.Serializers
2323
{
24-
2524
/// <summary>
2625
/// Represents a serializer for DateTimeOffsets.
2726
/// </summary>

MongoDB.BsonUnitTests/Jira/CSharp476Tests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,6 @@ public TExpressionCallingArbitraryCode()
370370
_chosen = 0;
371371
}
372372

373-
374373
public TExpressionCallingArbitraryCode(int x)
375374
{
376375
_chosen = 1;

MongoDB.BsonUnitTests/Serialization/Serializers/CollectionSerializerGenericTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public void TestNull()
257257
{
258258
var obj = new T { L = null, Q = null, S = null, H = null, LL = null };
259259
var json = obj.ToJson();
260-
var rep = "null";
260+
var rep = "null";
261261
var expected = "{ 'L' : #R, 'Q' : #R, 'S' : #R, 'H' : #R, 'LL' : #R }".Replace("#R", rep).Replace("'", "\"");
262262
Assert.AreEqual(expected, json);
263263

@@ -277,7 +277,7 @@ public void TestEmpty()
277277
var list = new List<object>();
278278
var obj = new T { L = list, Q = new Queue<object>(list), S = new Stack<object>(list), H = new HashSet<object>(list), LL = new LinkedList<object>(list) };
279279
var json = obj.ToJson();
280-
var rep = "[]";
280+
var rep = "[]";
281281
var expected = "{ 'L' : { '_t' : 'System.Collections.Generic.List`1[System.Object]', '_v' : #R }, 'Q' : { '_t' : 'System.Collections.Generic.Queue`1[System.Object]', '_v' : #R }, 'S' : { '_t' : 'System.Collections.Generic.Stack`1[System.Object]', '_v' : #R }, 'H' : { '_t' : 'System.Collections.Generic.HashSet`1[System.Object]', '_v' : #R }, 'LL' : { '_t' : 'System.Collections.Generic.LinkedList`1[System.Object]', '_v' : #R } }".Replace("#R", rep).Replace("'", "\"");
282282
Assert.AreEqual(expected, json);
283283

MongoDB.BsonUnitTests/Serialization/Serializers/NetPrimitiveSerializerTests.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1788,21 +1788,21 @@ public void TestHttp()
17881788
Assert.IsTrue(bson.SequenceEqual(rehydrated.ToBson()));
17891789
}
17901790

1791-
[Test]
1792-
public void TestRelative()
1793-
{
1794-
var obj = new TestClass
1795-
{
1796-
V = new Uri("/relative/page.html", UriKind.RelativeOrAbsolute)
1797-
};
1798-
var json = obj.ToJson();
1799-
var expected = "{ 'V' : '/relative/page.html' }".Replace("'", "\"");
1800-
Assert.AreEqual(expected, json);
1801-
1802-
var bson = obj.ToBson();
1803-
var rehydrated = BsonSerializer.Deserialize<TestClass>(bson);
1804-
Assert.IsTrue(bson.SequenceEqual(rehydrated.ToBson()));
1805-
}
1791+
[Test]
1792+
public void TestRelative()
1793+
{
1794+
var obj = new TestClass
1795+
{
1796+
V = new Uri("/relative/page.html", UriKind.RelativeOrAbsolute)
1797+
};
1798+
var json = obj.ToJson();
1799+
var expected = "{ 'V' : '/relative/page.html' }".Replace("'", "\"");
1800+
Assert.AreEqual(expected, json);
1801+
1802+
var bson = obj.ToBson();
1803+
var rehydrated = BsonSerializer.Deserialize<TestClass>(bson);
1804+
Assert.IsTrue(bson.SequenceEqual(rehydrated.ToBson()));
1805+
}
18061806

18071807
[Test]
18081808
public void TestMongoDB()

MongoDB.Driver/GeoJsonObjectModel/GeoJsonObjectType.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
* limitations under the License.
1414
*/
1515

16-
1716
namespace MongoDB.Driver.GeoJsonObjectModel
1817
{
1918
/// <summary>

MongoDB.Driver/GeoJsonObjectModel/Serializers/GeoJsonGeometrySerializer.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
* limitations under the License.
1414
*/
1515

16-
1716
namespace MongoDB.Driver.GeoJsonObjectModel.Serializers
1817
{
1918
/// <summary>

0 commit comments

Comments
 (0)