public async Task ComputeThree_ShouldReturn_3() { DemoCalc calc = new DemoCalc(); int expected = await ReadExpectedAsync(); int actual = calc.ComputeThree(); Assert.Equal(expected, actual); }
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); }
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); }