dotnet-installer/test/dotnet-resgen.Tests/Microsoft.DotNet.Tools.Resgen.Tests.cs
Piotr Puszkiewicz 31756737d3 dotnet-resgen.Tests
move dotnet-resgen.Tests to TAM
remove unnecessary code from dotnet-publish.Tests
add missing lock files in dotnet-compile.Tests
2016-08-18 12:36:25 -07:00

43 lines
1.3 KiB
C#

// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Generic;
using System.IO;
using System.Text.RegularExpressions;
using Microsoft.DotNet.Tools.Test.Utilities;
using Xunit;
using System;
namespace Microsoft.DotNet.Tools.Resgen.Tests
{
public class ResgenTests : TestBase
{
[Fact]
public void Test_Build_Project_with_Resources_with_Space_in_Path_Should_Succeed()
{
var testInstance = TestAssetsManager
.CreateTestInstance("TestProjectWithResource", identifier: "A SPACE")
.WithBuildArtifacts()
.WithLockFiles();
var testProject = Path.Combine(testInstance.Path, "project.json");
var buildCommand = new BuildCommand(testProject);
buildCommand.Execute().Should().Pass();
}
private void CopyProjectToTempDir(string projectDir, TempDirectory tempDir)
{
foreach (var file in Directory.EnumerateFiles(projectDir))
{
tempDir.CopyFile(file);
}
}
private string GetProjectPath(TempDirectory projectDir)
{
return Path.Combine(projectDir.Path, "project.json");
}
}
}