19 lines
536 B
C#
19 lines
536 B
C#
using backend.Install;
|
|
using FluentAssertions;
|
|
using Xunit;
|
|
|
|
namespace backend.tests;
|
|
|
|
public class InstallScriptBuilderTests
|
|
{
|
|
[Fact]
|
|
public void Build_inlines_the_backend_url_into_the_script()
|
|
{
|
|
var script = new InstallScriptBuilder().Build("https://example.test");
|
|
script.Should().Contain("BACKEND_URL=\"https://example.test\"");
|
|
script.Should().Contain("#!/usr/bin/env bash");
|
|
script.Should().Contain("$BACKEND_URL/client.tar.gz");
|
|
script.Should().Contain("client.pair");
|
|
}
|
|
}
|