Пример #1
0
        public async Task ComputeThree_ShouldReturn_3()
        {
            DemoCalc calc = new DemoCalc();

            int expected = await ReadExpectedAsync();

            int actual = calc.ComputeThree();

            Assert.Equal(expected, actual);
        }
Пример #2
0
    public static void Main(string[] arsg)
    {
        var bridgeSetup = new BridgeSetup();
        bridgeSetup.AddAllJarsClassPath(".");
        Bridge.CreateJVM(bridgeSetup);
        Bridge.RegisterAssembly(typeof(DemoCalc).Assembly);

        ICalc calc = new DemoCalc();
        int result = calc.MySuperSmartFunctionIDontHaveInJava("Answer to the Ultimate Question of Life, the Universe, and Everything");

        Console.WriteLine("Answer to the Ultimate Question is : " + result);
    }
Пример #3
0
    public static void Main(string[] arsg)
    {
        var bridgeSetup = new BridgeSetup();

        bridgeSetup.AddAllJarsClassPath(".");
        Bridge.CreateJVM(bridgeSetup);
        Bridge.RegisterAssembly(typeof(DemoCalc).Assembly);

        ICalc calc   = new DemoCalc();
        int   result = calc.MySuperSmartFunctionIDontHaveInJava("Answer to the Ultimate Question of Life, the Universe, and Everything");

        Console.WriteLine("Answer to the Ultimate Question is : " + result);
    }