Skip to content

Commit ad471ca

Browse files
committed
Chore: A bunch of coding style consistency changes.
1 parent 12a3bfe commit ad471ca

File tree

12 files changed

+196
-171
lines changed

12 files changed

+196
-171
lines changed

PhpSerializerNET.Test/DataTypes/IPhpObjectStruct.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public string GetClassName() {
1111
return this._className;
1212
}
1313
public void SetClassName(string className) {
14-
_className = className;
14+
this._className = className;
1515
}
1616
public string Foo;
1717
}

PhpSerializerNET.Test/DataTypes/MyPhpObject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public string GetClassName() {
1111
return this._className;
1212
}
1313
public void SetClassName(string className) {
14-
_className = className;
14+
this._className = className;
1515
}
1616
public string Foo { get; set; }
1717
}

PhpSerializerNET.Test/Deserialize/ArrayDeserialization.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public void ExplicitToClassFormatException() {
4040

4141
[Fact]
4242
public void ExplicitToClassWrongProperty() {
43-
var ex = Assert.Throws<PhpSerializerNET.DeserializationException>(() =>
43+
var ex = Assert.Throws<DeserializationException>(() =>
4444
PhpSerialization.Deserialize<SimpleClass>(
4545
"a:1:{s:7:\"BString\";s:22:\"this is a string value\";}"
4646
)
@@ -148,7 +148,7 @@ public void ExplicitToStruct() {
148148

149149
[Fact]
150150
public void ExplicitToStructWrongField() {
151-
var ex = Assert.Throws<PhpSerializerNET.DeserializationException>(() =>
151+
var ex = Assert.Throws<DeserializationException>(() =>
152152
PhpSerialization.Deserialize<AStruct>(
153153
"a:1:{s:7:\"BString\";s:22:\"this is a string value\";}"
154154
)
@@ -173,7 +173,7 @@ public void ExplicitToArray() {
173173

174174
[Fact]
175175
public void ExplicitToListNonIntegerKey() {
176-
var ex = Assert.Throws<PhpSerializerNET.DeserializationException>(() =>
176+
var ex = Assert.Throws<DeserializationException>(() =>
177177
PhpSerialization.Deserialize<List<string>>("a:3:{i:0;s:5:\"Hello\";s:1:\"a\";s:5:\"World\";i:2;i:12345;}")
178178
);
179179

0 commit comments

Comments
 (0)