From 73d729ff66f7c5053ac503f0f7726030280640cd Mon Sep 17 00:00:00 2001 From: "Adam R. Grey" Date: Fri, 17 Dec 2021 04:11:11 -0500 Subject: [PATCH] observe, it works, and also finally franz shuts the hell up so I can read --- franz.tests/Program.cs | 20 +++++++++++++++++++ franz.tests/UnitTest1.cs | 15 --------------- franz.tests/franz.tests.csproj | 35 ++++++++++++---------------------- 3 files changed, 32 insertions(+), 38 deletions(-) create mode 100644 franz.tests/Program.cs delete mode 100644 franz.tests/UnitTest1.cs diff --git a/franz.tests/Program.cs b/franz.tests/Program.cs new file mode 100644 index 0000000..7868586 --- /dev/null +++ b/franz.tests/Program.cs @@ -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(r => { + Console.WriteLine(r); + }); + Telefranz.Instance.ProduceMessage(new silver_messages.global.sound_off()); + System.Threading.Thread.Sleep(10000); + Console.WriteLine("k."); + } + } +} diff --git a/franz.tests/UnitTest1.cs b/franz.tests/UnitTest1.cs deleted file mode 100644 index 9186446..0000000 --- a/franz.tests/UnitTest1.cs +++ /dev/null @@ -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"); - } - } -} diff --git a/franz.tests/franz.tests.csproj b/franz.tests/franz.tests.csproj index c58ee5c..5592e61 100644 --- a/franz.tests/franz.tests.csproj +++ b/franz.tests/franz.tests.csproj @@ -1,23 +1,12 @@ - - - - net5.0 - - false - - - - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - - + + + + + + + + Exe + net5.0 + + +