public class Sum { public Sum(){} public long GetSum(long a, long b) => a + b; }
public class Sum{public int GetSum(int a, int b) => a + b;- public class Sum
- {
- public Sum(){}
- public long GetSum(long a, long b) => a + b;
- }
namespace Solution { using NUnit.Framework; using System; [TestFixture] public class SolutionTest { [Test] public void MyTest() { Sum sum = new Sum(); Assert.AreEqual(19, sum.GetSum(9, 10)); Assert.AreEqual(21, sum.GetSum(11, 10)); Assert.AreEqual(4294967292, sum.GetSum(2147483646, 2147483646)); } } }
namespace Solution {using NUnit.Framework;using System;[TestFixture]public class SolutionTest{[Test]public void MyTest(){Sum sum = new Sum();Assert.AreEqual(19, sum.GetSum(9, 10));Assert.AreEqual(21, sum.GetSum(11, 10));Assert.AreEqual(4294967292, sum.GetSum(2147483646, 2147483646));}}- namespace Solution {
- using NUnit.Framework;
- using System;
- [TestFixture]
- public class SolutionTest
- {
- [Test]
- public void MyTest()
- {
- Sum sum = new Sum();
- Assert.AreEqual(19, sum.GetSum(9, 10));
- Assert.AreEqual(21, sum.GetSum(11, 10));
- Assert.AreEqual(4294967292, sum.GetSum(2147483646, 2147483646));
- }
- }
- }