public class Sum { public int GetSum(int a, int b) => a + b; }
using System;- public class Sum
- {
public int GetSum(int a, int b){return a + b;}- public int GetSum(int a, int 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)); } } }
- namespace Solution {
- using NUnit.Framework;
- using System;
// TODO: Replace examples and use TDD development by writing your own tests- [TestFixture]
- public class SolutionTest
- {
- [Test]
- public void MyTest()
- {
Assert.AreEqual("expected", "actual");- Sum sum = new Sum();
- Assert.AreEqual(19, sum.GetSum(9, 10));
- Assert.AreEqual(21, sum.GetSum(11, 10));
- }
- }
- }