Remove complicating and non-valuable test asserts
This commit is contained in:
parent
ef1bd4379b
commit
3b4c75a3ed
|
|
@ -155,17 +155,6 @@ namespace Microsoft.DotNet.OpenApi.Add.Tests
|
||||||
Assert.Contains("<PackageReference Include=\"NSwag.ApiDescription.Client\" Version=\"", content);
|
Assert.Contains("<PackageReference Include=\"NSwag.ApiDescription.Client\" Version=\"", content);
|
||||||
Assert.Contains($"<OpenApiReference Include=\"{nswagJsonFile}\" CodeGenerator=\"NSwagTypeScript\" />", content);
|
Assert.Contains($"<OpenApiReference Include=\"{nswagJsonFile}\" CodeGenerator=\"NSwagTypeScript\" />", content);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build project and make sure it compiles
|
|
||||||
using var buildProc = ProcessEx.Run(_outputHelper, _tempDir.Root, "dotnet", "build");
|
|
||||||
await buildProc.Exited;
|
|
||||||
Assert.True(buildProc.ExitCode == 0, $"Build failed: {buildProc.Output}");
|
|
||||||
|
|
||||||
|
|
||||||
// Run project and make sure it doesn't crash
|
|
||||||
using var runProc = ProcessEx.Run(_outputHelper, _tempDir.Root, "dotnet", "run");
|
|
||||||
Thread.Sleep(100);
|
|
||||||
Assert.False(runProc.HasExited, $"Run failed with: {runProc.Output}");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
|
|
@ -189,16 +178,6 @@ namespace Microsoft.DotNet.OpenApi.Add.Tests
|
||||||
Assert.Contains("<PackageReference Include=\"NSwag.ApiDescription.Client\" Version=\"", content);
|
Assert.Contains("<PackageReference Include=\"NSwag.ApiDescription.Client\" Version=\"", content);
|
||||||
Assert.Contains($"<OpenApiReference Include=\"{nswagJsonFile}\"", content);
|
Assert.Contains($"<OpenApiReference Include=\"{nswagJsonFile}\"", content);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build project and make sure it compiles
|
|
||||||
var buildProc = ProcessEx.Run(_outputHelper, _tempDir.Root, "dotnet", "build");
|
|
||||||
await buildProc.Exited;
|
|
||||||
Assert.True(buildProc.ExitCode == 0, $"Build failed: {buildProc.Output}");
|
|
||||||
|
|
||||||
// Run project and make sure it doesn't crash
|
|
||||||
using var runProc = ProcessEx.Run(_outputHelper, _tempDir.Root, "dotnet", "run");
|
|
||||||
Thread.Sleep(100);
|
|
||||||
Assert.False(runProc.HasExited, $"Run failed with: {runProc.Output}");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue