public void getTotalXTest() { Assert.Equal(3, BetweenTwoSets.getTotalX(new List <int>() { 2, 4 }, new List <int>() { 16, 32, 96 })); }
public static void betweenTwoSets() { List <int> arr = new List <int> { 2, 4 }; List <int> brr = new List <int> { 16, 32, 96 }; int total = BetweenTwoSets.getTotalX(arr, brr); Console.WriteLine("Between Two Sets"); Console.WriteLine(total); }
public void getTotalXTest() { List <int> a = new List <int>() { 2, 4 }; List <int> b = new List <int>() { 16, 32, 96 }; int expected = 3; var actual = BetweenTwoSets.getTotalX(a, b); Assert.AreEqual(expected, actual); }
static void Main(string[] args) { string[] nm = Console.ReadLine().Split(' '); int n = Convert.ToInt32(nm[0]); int m = Convert.ToInt32(nm[1]); int[] a = Array.ConvertAll(Console.ReadLine().Split(' '), aTemp => Convert.ToInt32(aTemp)); int[] b = Array.ConvertAll(Console.ReadLine().Split(' '), bTemp => Convert.ToInt32(bTemp)); int total = BetweenTwoSets.GetTotalX(a, b); Console.WriteLine(total); Console.ReadKey(); }
public BetweenTwoSetsTests() { twosets = new BetweenTwoSets(); }