add ProxyJump function
This commit is contained in:
1 parent
56e20e5464
commit
7f0e0fdb23
48 files changed
+3875
-44
No files matched your search
@@ -0,0 +1,33 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<!--
|
||||
SDK-style project deliberately: xUnit's tooling and `dotnet test` work
|
||||
with zero friction this way, and unlike BulkArchiveMailer.Core/AddIn
|
||||
this project has no VSTO constraints forcing the classic csproj format.
|
||||
Mixing project styles in one .sln is fine.
|
||||
|
||||
SCAFFOLD ONLY - see FilenameParserTests.cs. A separate dotnet-tester
|
||||
pass is expected to flesh out real coverage for ArchiveScanner,
|
||||
SendLogStore, TemplateEngine, AppSettings, etc.
|
||||
-->
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net48</TargetFramework>
|
||||
<IsPackable>false</IsPackable>
|
||||
<LangVersion>7.3</LangVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
|
||||
<PackageReference Include="xunit" Version="2.7.0" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\BulkArchiveMailer.Core\BulkArchiveMailer.Core.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,25 @@
|
||||
using BulkArchiveMailer.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace BulkArchiveMailer.Core.Tests
|
||||
{
|
||||
/// <summary>
|
||||
/// Scaffold smoke test only, proving the test project wires up
|
||||
/// (references Core correctly, xunit runs). NOT meant to be the real
|
||||
/// test suite - a dotnet-tester pass covers ArchiveScanner,
|
||||
/// SendLogStore, TemplateEngine, AppSettings, EmailAddressBuilder
|
||||
/// edge cases, etc.
|
||||
/// </summary>
|
||||
public class FilenameParserTests
|
||||
{
|
||||
[Fact]
|
||||
public void TryParse_KnownGoodSshAccessFileName_Succeeds()
|
||||
{
|
||||
var ok = FilenameParser.TryParse("a-makarov_ssh_access.7z", out var parsed);
|
||||
|
||||
Assert.True(ok);
|
||||
Assert.Equal("a-makarov", parsed.Login);
|
||||
Assert.Equal(ArchiveKind.SshAccess, parsed.Kind);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user