public void CustomProjectParser_CanParseSample2017CsProjFile_ForDebugConfig() { var result = valid2017CsProjFile.ParseProjectFile("debug"); result.Configuration.Should().Be("debug"); result.OutputPath.ToString().Should().Be("bin/Debug"); }
public void CustomProjectParser_CanParseSample2017CsProjNetCoreFile_ForDebugConfig() { var result = valid2017CsProjNetcoreFile.ParseProjectFile("debug"); result.Configuration.Should().Be("debug"); result.OutputPath.ToString().Should().Be("bin/custom/netcoreapp1.1"); result.OutputType.Should().Be("Exe"); result.GetAssemblyFilePath().FullPath.Should().Be("bin/custom/netcoreapp1.1/project.dll"); }
public void IsWebApplication_ReturnsTrue_WhenProjectIsOfTypeWebApplication() { // arrange var sut = validCsProjWebApplicationFile.ParseProjectFile("debug"); // act var webApp = sut.IsWebApplication(); // assert webApp.Should().BeTrue(); }
public void CustomProjectParser_CanParseCsProjWithConditionalReferences() { var result = validCsProjConditionalReferenceFile.ParseProjectFile("debug"); result.References.Should().HaveCount(8).And.Contain(x => x.Name.Equals("Microsoft.VisualStudio.QualityTools.UnitTestFramework")); }
public void CustomProjectParser_RespectAppendTargetFrameworkToOutputPath_ForDebugConfig() { var result = validCsProjAppendTargetFrameworkFile.ParseProjectFile("debug"); result.Configuration.Should().Be("debug"); result.OutputPath.ToString().Should().Be("bin/debug/net48"); }
public void CustomProjectParser_ShouldParseProjectWithAbsolutePaths() { var result = validCsProjWithAbsoluteFilePaths.ParseProjectFile("debug"); result.References.Should().Contain(x => x.HintPath.FullPath == "C:/Program Files (x86)/Reference Assemblies/Microsoft/Framework/.NETFramework/v4.5.2/System.dll"); }
public void CustomProjectParser_CanParseSample2017CsProjNetStandardFile_ForReleaseConfig() { var result = valid2017CsProjNetstandardFile.ParseProjectFile("debug"); result.Configuration.Should().Be("debug"); result.OutputPath.ToString().Should().Be("bin/wayhey/netstandard1.6"); result.OutputType.Should().Be("Library"); result.GetAssemblyFilePath().FullPath.Should().Be("bin/wayhey/netstandard1.6/project.dll"); }
public void ParseProject_IsFrameworkTestProject(FakeFile testProject) { var result = testProject.ParseProjectFile("test"); result.IsFrameworkTestProject().Should().BeTrue(); }
public void Dump_ProjectParserResult() { var file = new FakeFile("CsProj_ValidFile".SafeLoad()); file.ParseProjectFile("test").Dump().Should().Be(""); }