public void Should_Parse_Framework_Version() { // Given var fixture = new ProjectParserFixture(); // When var result = fixture.Parse(); // Then Assert.Equal(result.TargetFrameworkVersion, "v4.5"); }
public void Should_Parse_Framework_Profile() { // Given var fixture = new ProjectParserFixture(); // When var result = fixture.Parse(); // Then Assert.Equal("Profile111", result.TargetFrameworkProfile); }
public void Should_Parse_OutputAssembly() { // Given var fixture = new ProjectParserFixture(); // When var result = fixture.Parse(); // Then Assert.Equal(@"bin/Debug", result.OutputPath.FullPath); }
public void Should_Return_Parser_Result() { // Given var fixture = new ProjectParserFixture(); // When var result = fixture.Parse(); // Then Assert.NotNull(result); }
public void Should_Return_Correct_File_Count() { // Given var fixture = new ProjectParserFixture(); // When var result = fixture.Parse(); // Then Assert.Equal(2, result.Files.Count); }
public void Should_Parse_Platform() { // Given var fixture = new ProjectParserFixture(); // When var result = fixture.Parse(); // Then Assert.Equal(result.Platform, "AnyCPU"); }
public void Should_Parse_Configuration() { // Given var fixture = new ProjectParserFixture(); // When var result = fixture.Parse(); // Then Assert.Equal(result.Configuration, "Debug"); }
public void Should_Parse_Output_Type() { // Given var fixture = new ProjectParserFixture(); // When var result = fixture.Parse(); // Then Assert.Equal(result.OutputType, "Library"); }
public void Should_Parse_Namespace() { // Given var fixture = new ProjectParserFixture(); // When var result = fixture.Parse(); // Then Assert.Equal(result.RootNameSpace, "Cake.Common"); }
public void Should_Parse_Assembly_Name() { // Given var fixture = new ProjectParserFixture(); // When var result = fixture.Parse(); // Then Assert.Equal(result.AssemblyName, "Cake.Common"); }
public void Should_Return_Valid_Guid() { // Given var fixture = new ProjectParserFixture(); // When var result = fixture.Parse(); // Then Guid projectGuid; var parseResult = Guid.TryParseExact(result.ProjectGuid, "B", out projectGuid); Assert.True(parseResult); }
public void Should_Return_Project_References() { // Given var fixture = new ProjectParserFixture(); // When var result = fixture.Parse(); // Then Assert.Equal(1, result.ProjectReferences.Count); Assert.Equal("/Working/../Cake.Common/Cake.Common.csproj", result.ProjectReferences.First().FilePath.FullPath); Assert.Equal("..\\Cake.Common\\Cake.Common.csproj", result.ProjectReferences.First().RelativePath); Assert.Equal("{ABC3F1CB-F84E-43ED-A120-0CCFE344D250}", result.ProjectReferences.First().Project); Assert.Equal("Cake.Common", result.ProjectReferences.First().Name); }
public void Should_Return_References() { // Given var fixture = new ProjectParserFixture(); // When var result = fixture.Parse(); // Then Assert.Equal(1, result.References.Count); Assert.Equal("System.Collections.Immutable, Version=1.1.37.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL", result.References.First().Include); Assert.Equal("/Working/../packages/System.Collections.Immutable.1.1.37/lib/dotnet/System.Collections.Immutable.dll", result.References.First().HintPath.FullPath); Assert.Equal(true, result.References.First().Private); }