Updating tests

This commit is contained in:
Justin Goshi 2017-01-26 09:55:09 -08:00
parent 8b7c0ad468
commit 61ae452fe2
6 changed files with 9 additions and 9 deletions

View file

@ -0,0 +1 @@
Test content file that should be excluded.

View file

@ -1 +0,0 @@
Test content file that should be included.

View file

@ -1,10 +1,10 @@
{
"version": "1.0.0-*",
"content": "*.txt",
"contentExclude": "ExcludeThis.txt",
"contentExclude": "ExcludeThis1.txt",
"contentFiles": [ "../ContentFile1.txt", "../ContentFile2.txt" ],
"contentBuiltIn": [ "../ContentFileBuiltIn1.txt", "../ContentFileBuiltIn2.txt" ],
"publishExclude": "IncludeThis2.txt",
"publishExclude": "ExcludeThis2.txt",
"buildOptions": {
"debugType": "portable",
"emitEntryPoint": true

View file

@ -228,10 +228,10 @@ namespace Microsoft.DotNet.Migration.Tests
"ContentFile2.txt",
"ContentFileBuiltIn1.txt",
"ContentFileBuiltIn2.txt",
"IncludeThis1.txt",
"IncludeThis.txt",
});
Directory.Exists(Path.Combine(outputDir.FullName, "IncludeThis2.txt")).Should().BeFalse();
Directory.Exists(Path.Combine(outputDir.FullName, "ExcludeThis.txt")).Should().BeFalse();
Directory.Exists(Path.Combine(outputDir.FullName, "ExcludeThis1.txt")).Should().BeFalse();
Directory.Exists(Path.Combine(outputDir.FullName, "ExcludeThis2.txt")).Should().BeFalse();
var publishDir = projectDirectory.GetDirectory("bin", "Debug", "netcoreapp1.0", "publish");
publishDir.Should().Exist()
@ -241,10 +241,10 @@ namespace Microsoft.DotNet.Migration.Tests
"ContentFile2.txt",
"ContentFileBuiltIn1.txt",
"ContentFileBuiltIn2.txt",
"IncludeThis1.txt",
"IncludeThis.txt",
});
Directory.Exists(Path.Combine(publishDir.FullName, "IncludeThis2.txt")).Should().BeFalse();
Directory.Exists(Path.Combine(publishDir.FullName, "ExcludeThis.txt")).Should().BeFalse();
Directory.Exists(Path.Combine(publishDir.FullName, "ExcludeThis1.txt")).Should().BeFalse();
Directory.Exists(Path.Combine(publishDir.FullName, "ExcludeThis2.txt")).Should().BeFalse();
}
[Fact]