Skip to content

Commit 6fb42e4

Browse files
committed
Removed use of Serialization
1 parent 357be90 commit 6fb42e4

File tree

6 files changed

+3656
-36
lines changed

6 files changed

+3656
-36
lines changed

src/TestStack.BDDfy/Processors/InconclusiveException.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Runtime.Serialization;
32

43
namespace TestStack.BDDfy.Processors
54
{
@@ -16,9 +15,5 @@ public InconclusiveException(string message) : base(message)
1615
public InconclusiveException(string message, Exception innerException) : base(message, innerException)
1716
{
1817
}
19-
20-
protected InconclusiveException(SerializationInfo info, StreamingContext context) : base(info, context)
21-
{
22-
}
2318
}
2419
}
Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,12 @@
11
namespace TestStack.BDDfy.Processors
22
{
33
using System;
4-
using System.Runtime.Serialization;
54

6-
[Serializable]
75
public class UnusedExampleException : Exception
86
{
97
public UnusedExampleException(ExampleValue unusedValue) :
108
base(string.Format("Example Column '{0}' is unused, all examples should be consumed by the test (have you misspelt a field or property?)\r\n\r\n"
119
+ "If this is not the case, raise an issue at https://github.com/TestStack/TestStack.BDDfy/issues.", unusedValue.Header))
1210
{ }
13-
14-
protected UnusedExampleException(
15-
SerializationInfo info,
16-
StreamingContext context)
17-
: base(info, context)
18-
{
19-
}
2011
}
2112
}
Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,14 @@
11
using System;
2-
using System.Runtime.Serialization;
32

43
namespace TestStack.BDDfy
54
{
6-
[Serializable]
75
public class UnassignableExampleException : Exception
86
{
97
public UnassignableExampleException(string message, Exception inner, ExampleValue exampleValue) : base(message, inner)
108
{
119
ExampleValue = exampleValue;
1210
}
1311

14-
protected UnassignableExampleException(
15-
SerializationInfo info,
16-
StreamingContext context) : base(info, context)
17-
{
18-
}
19-
2012
public ExampleValue ExampleValue { get; private set; }
2113
}
2214
}

src/TestStack.BDDfy/Scanners/StepScanners/StepTitleException.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Runtime.Serialization;
32

43
namespace TestStack.BDDfy
54
{
@@ -16,10 +15,5 @@ public StepTitleException(string message) : base(message)
1615
public StepTitleException(string message, Exception innerException) : base(message, innerException)
1716
{
1817
}
19-
20-
protected StepTitleException(SerializationInfo info, StreamingContext context)
21-
: base(info, context)
22-
{
23-
}
2418
}
2519
}

src/TestStack.BDDfy/project.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
"System.Web": "4.0.0.0",
1717
"System.Web.Extensions": "4.0.0.0"
1818
}
19+
},
20+
"netstandard1.5": {
21+
"imports": "dnxcore50",
22+
"dependencies": {
23+
"NETStandard.Library": "1.5.0-rc2-24027"
24+
}
1925
}
20-
//"netstandard1.5": {
21-
// "imports": "dnxcore50",
22-
// "dependencies": {
23-
// "NETStandard.Library": "1.5.0-rc2-24027"
24-
// }
25-
//}
2626
}
2727
}

0 commit comments

Comments
 (0)