-
Notifications
You must be signed in to change notification settings - Fork 32
Upgrade project to .NET Standard 2.0 #5
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,23 @@ | ||
image: Visual Studio 2017 | ||
image: | ||
- Visual Studio 2017 | ||
- Ubuntu | ||
|
||
skip_tags: false | ||
|
||
before_build: | ||
- nuget restore | ||
init: | ||
- ps: >- | ||
if ($env:APPVEYOR_REPO_TAG -eq "true") | ||
{ | ||
Update-AppveyorBuild -Version ($env:APPVEYOR_REPO_TAG_NAME).TrimStart("v") | ||
} | ||
|
||
build: | ||
verbosity: minimal | ||
project: NVelocity.sln | ||
publish_nuget: false | ||
build_script: | ||
- dotnet build ./NVelocity.sln -c Release | ||
|
||
test_script: | ||
- dotnet test ./src/NVelocity.Tests | ||
|
||
artifacts: | ||
- path: build/*.nupkg | ||
name: nvelocity | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ namespace NVelocity.Tests.Bugs | |
[TestFixture] | ||
public class NVelocity14 : BaseTestCase | ||
{ | ||
[Test, ExpectedException(typeof(ParseErrorException))] | ||
[Test] | ||
public void Test() | ||
{ | ||
var velocityEngine = new VelocityEngine(); | ||
|
@@ -35,17 +35,8 @@ public void Test() | |
extendedProperties.SetProperty(RuntimeConstants.FILE_RESOURCE_LOADER_PATH, TemplateTest.FILE_RESOURCE_LOADER_PATH); | ||
|
||
velocityEngine.Init(extendedProperties); | ||
|
||
VelocityContext context = new VelocityContext(); | ||
|
||
Template template = velocityEngine.GetTemplate( | ||
GetFileName(null, "nv14", TemplateTest.TMPL_FILE_EXT)); | ||
|
||
StringWriter writer = new StringWriter(); | ||
|
||
template.Merge(context, writer); | ||
|
||
Console.WriteLine(writer); | ||
|
||
Assert.Throws<ParseErrorException>(() => velocityEngine.GetTemplate(GetFileName(null, "nv14", TemplateTest.TMPL_FILE_EXT))); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When converting to NUnit 3, I had to rewrite the test because of the removal of The test actually fails with the expected exception when calling GetTemplate, so everything under that was never run. I just removed it since it didn't seem necessary. |
||
} | ||
} | ||
} |
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.
I read through the Core project and it seemed a little bit overkill (for now) to pull everything into a separate build file, and I was having trouble running it on Ubuntu. So I just put it in here for now.