-
Notifications
You must be signed in to change notification settings - Fork 84
Fixed most of the Portability Report issues #229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 5 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
6fb42e4
Removed use of Serialization
mwhelan a016947
Added System.Ling.Expressions and System.Runtime.Extensions
mwhelan 2a1a7a3
Added Json.Net for Standard 1.5 JSON serialization
mwhelan 9648f54
Dealt with missing methods for types, dates, and strings.
mwhelan bebe639
Disabled netstandard1.5 in project json to build. AppDomain and Stack…
mwhelan 14b4213
First pass at making coreclr compatible
JakeGinnivan 0c647e0
Got tests compiling
JakeGinnivan c7b77cd
Most of the tests are passing for net46 again. Some approval tests fa…
JakeGinnivan e3f6513
Merge pull request #1 from JakeGinnivan/netcore
mwhelan 2a11581
Restored serialization for NET40
mwhelan 3883cb2
Upgraded to .Net Core 1.0
mwhelan 5ed8c89
Fixed stack overflow issue in the tests
JakeGinnivan 355429b
Merge pull request #2 from JakeGinnivan/netcore
mwhelan 426e86e
Moved samples to .Net Core class library
mwhelan 4286834
Hooked up AssemblyFixture for xUnit in the Samples project
mwhelan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| using System; | ||
| using System.Globalization; | ||
|
|
||
| namespace TestStack.BDDfy | ||
| { | ||
| public static class DateTimeExtensions | ||
| { | ||
| public static string AsShortDateTimeString(this DateTime dateTime) | ||
| { | ||
| return dateTime.ToString(CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern); | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,12 @@ | ||
| namespace TestStack.BDDfy.Processors | ||
| { | ||
| using System; | ||
| using System.Runtime.Serialization; | ||
|
|
||
| [Serializable] | ||
| public class UnusedExampleException : Exception | ||
| { | ||
| public UnusedExampleException(ExampleValue unusedValue) : | ||
| 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" | ||
| + "If this is not the case, raise an issue at https://github.com/TestStack/TestStack.BDDfy/issues.", unusedValue.Header)) | ||
| { } | ||
|
|
||
| protected UnusedExampleException( | ||
| SerializationInfo info, | ||
| StreamingContext context) | ||
| : base(info, context) | ||
| { | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/TestStack.BDDfy/Reporters/Html/HtmlReportResources.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
src/TestStack.BDDfy/Scanners/StepScanners/Examples/UnassignableExampleException.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,14 @@ | ||
| using System; | ||
| using System.Runtime.Serialization; | ||
|
|
||
| namespace TestStack.BDDfy | ||
| { | ||
| [Serializable] | ||
| public class UnassignableExampleException : Exception | ||
| { | ||
| public UnassignableExampleException(string message, Exception inner, ExampleValue exampleValue) : base(message, inner) | ||
| { | ||
| ExampleValue = exampleValue; | ||
| } | ||
|
|
||
| protected UnassignableExampleException( | ||
| SerializationInfo info, | ||
| StreamingContext context) : base(info, context) | ||
| { | ||
| } | ||
|
|
||
| public ExampleValue ExampleValue { get; private set; } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could polyfill this if you wanted. Removing for everyone means you can no longer take exception across appdomains
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By polyfill, do you mean #if statements?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create an attribute in your code in the right namespace. Does nothing but don't need ifs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I see what you mean. But then I would still need an #if for the serializable constructor?