diff --git a/Sanchime.Test/Program.cs b/Sanchime.Test/Program.cs index d25b921..f5e058a 100644 --- a/Sanchime.Test/Program.cs +++ b/Sanchime.Test/Program.cs @@ -1 +1,19 @@ -Console.WriteLine("Hello World!"); \ No newline at end of file +using Sanchime.Functional.Core.Products; +using Sanchime.Functional.Core.Extensions; +using Sanchime.Toolkits; + +// Test test = new Test(); + +// Console.WriteLine(test.Map((Test x) => {x.Value = 2; return x;}).Value); + +// Console.WriteLine(test.Value); + +foo(10); +foo(Option.None); + +void foo(Option option) +{ + var res = option.Map(x => x + 2); + res.WriteLine(); +} + diff --git a/Sanchime.Test/Sanchime.Test.csproj b/Sanchime.Test/Sanchime.Test.csproj index d439800..4e9d71e 100644 --- a/Sanchime.Test/Sanchime.Test.csproj +++ b/Sanchime.Test/Sanchime.Test.csproj @@ -1,5 +1,10 @@ + + + + + Exe net7.0