observe, it works, and also finally franz shuts the hell up so I can read

This commit is contained in:
Adam R. Grey 2021-12-17 04:11:11 -05:00
parent 70c465e9e9
commit 73d729ff66
3 changed files with 32 additions and 38 deletions

20
franz.tests/Program.cs Normal file
View File

@ -0,0 +1,20 @@
using System;
namespace franz.tests
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
Telefranz.Configure("tester", "focalor:9092");
Telefranz.Instance.addHandler<silver_messages.global.report>(r => {
Console.WriteLine(r);
});
Telefranz.Instance.ProduceMessage(new silver_messages.global.sound_off());
System.Threading.Thread.Sleep(10000);
Console.WriteLine("k.");
}
}
}

View File

@ -1,15 +0,0 @@
using franz;
using System;
using Xunit;
namespace franz.tests
{
public class UnitTest1
{
[Fact]
public void Test1()
{
Telefranz.Configure("xunit", "focalor:9092");
}
}
}

View File

@ -1,23 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="../franz/franz.csproj" /> <ProjectReference Include="..\franz\franz.csproj" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.1" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="1.3.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup> </ItemGroup>
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
</Project> </Project>